       , Imp,  .  , , 
    Imp,     , 
    . ,  
TDoubleListlmp   .     Imp 
   , ,     
    .     
  ,  TDequeAsDoubleList,  
 TDoubleListlmp,     . 
        , Iterator, ,   
         
.      ,   
. ,  TDequeAsVectorlterator    , 
   TDequeAsVector.  ,   
Imp,     . ,  
TDoubleListlteratorlmp     ,   
 TDoubleListlmp. 
    ,    , TShouldDelete, ""   
.      ,    , 
    ,   ,    
   .   " "    
 ,      .	

     ""  

    ,          
 ,        
.        
      .	

           

       ,  ,    
 ( )   (). ,  
     I,  TIQueueAsVector,  
 ,     .   I (TQueueAsVector, 
)    .   16.2 
    . 

     16.2.  DIRECT.CPP (     ) 

     1:	#include <iostream.h>                                           
     2:	#include <cstring.h>                                              
     3:	#include <classlib\arrays. h> 
     4:	
     5:	#define TRUE 1 
     6:	#define FALSE 0 
     7: 
     8: 	//          
     9:	TArrayAsVector<string> dStrings(10);                           
    10:	TIArrayAsVector<string> iStrings(10); 
    11:	
    12:	int main() 
    13:	{ 
    14:	int done = FALSE; //    while 
    15:	int i;         //    for 
    16:	string s;        //    
    17:	char buf[81];    //    
    18: 
    19:	while (!done) { 
    20:	  cout  "Enter a string: ";   //    
    21:	  cin.getline(buf, sizeof(buf)); //    
    22:	  s = buf;               //    string 
    23:	  if (s.length() == 0)       //     
    24:	    done = TRUE;           //   -   while 
    25:	  else {                 // ...^. 
    26:	   dStrings.Add(s);   "     //    
    21:	   iStrings.Add (new string(s)); //     
    28:	} 
    29:	} 
    30: 
    31:	//       
    32:	cout << endl;. 
    33:	cout << "Direct string array" << endl;                
    

    430	 IV.   
