// vector.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <vector>

int main(int argc, char* argv[])
{
/*string word;
vector<string> text;
int i = 0;
while( cin>>word ){
text.push_back(word);
cout << text[i] << endl;
i++;
}*/
vector<int> ivec;
for( vector<int>::size_type ix = 0; ix != 10; ++ix ){
ivec.push_back(ix);
}
for(int i = 0; i < ivec.size(); i++ ){
cout<< ivec[i] << endl;
}
return 0;
}

 

相关文章:

  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2021-11-01
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2021-08-16
  • 2021-04-18
  • 2021-04-11
  • 2022-02-02
相关资源
相似解决方案