CHAPTER6-8.cpp
上传用户:fjc899
上传日期:2007-07-03
资源大小:187k
文件大小:1k
- //文件名:CHAPTER6-8.cpp
- #pragma warning(disable:4786)
- #include <iostream.h>
- #include <vector>
- using namespace std;
- void main (void)
- {
- vector<char> Myvector;
- vector<char>::iterator MilkshakeIterator;
- Myvector.push_back('1');
- Myvector.push_back('2');
- Myvector.push_back('3');
- Myvector.push_back('4');
- Myvector.push_back('5');
- Myvector.push_back('6');
- for (MilkshakeIterator=Myvector.begin(); MilkshakeIterator!=Myvector.end(); ++MilkshakeIterator)
- { cout<<*MilkshakeIterator<<" "; }
- }