Go to the source code of this file.
Compounds | |
class | List |
Typedefs | |
typedef int | Elem |
Functions | |
void | print (List) |
main () | |
Variables | |
const int | LIST_SIZE = 10 |
|
|
|
Definition at line 26 of file LADTIEX.C. 00027 { 00028 List L1; 00029 List L2(15); 00030 List L3; 00031 00032 L2.append(12); // L2 now ( 12 ) 00033 print(L2); 00034 L2.append(20); // L2 now ( 12, 20 ) 00035 L2.append(15); // L2 now ( 12, 20, 15 ) 00036 print(L2); 00037 L1.setFirst(); 00038 L1.insert(39); // L1 now ( 39 ) 00039 L1.next(); // L1 now ( 39, 12 ) 00040 L1.insert(12); 00041 return(0); 00042 } |
|
|
|
|