#include <string>
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
int main()
{
vector<string> v;
ifstream in("Fillvetor.opp");
string line;
while (getline(in,line))
v.push_back(line);
for(int i = 0; i < v.size() ; i++ )
cout << i << ":" << v[i] << endl;
}
2.7 Fillvector
最新推荐文章于 2023-10-07 17:52:59 发布