Definicja w linii 19 pliku TStack2Test.cpp.
Odwołuje się do assure(), Stack< T >::begin(), Stack< T >::end(), Stack< T >::iterator i Stack< T >::push(). 00019 {
00020 ifstream file("TStack2Test.cpp");
00021 assure(file, "TStack2Test.cpp");
00022 Stack<string> textlines;
00023
00024 string line;
00025 while(getline(file, line))
00026 textlines.push(new string(line));
00027 int i = 0;
00028
00029 Stack<string>::iterator it = textlines.begin();
00030 Stack<string>::iterator* it2 = 0;
00031 while(it != textlines.end()) {
00032 cout << it->c_str() << endl;
00033 it++;
00034 if(++i == 10)
00035
00036
00037 it2 = new Stack<string>::iterator(it);
00038 }
00039
00040 delete it2;
00041 }
|