2.5
程序员文章站
2022-03-26 14:03:52
...
#include<iostream>
#include<fstream>
#include<string>
#include<vector>
using namespace std;
int main()
{
vector<string> v;
ifstream in("2_5txt.txt");
string line;
while(getline(in,line)){
v.push_back(line);
}
for(int i = v.size()-1;i >= 0;i--)
cout << i << " : " << v[i] << endl;
cin.get();
}
txt
Tsinghua is the best
I'm the best
hhh
mabaoguo
the young man bujiangwude
qu tou
touxi
wo
69sui de laotongzhi
上一篇: 课时66.颜色控制属性下(理解)
下一篇: 1.初识JVM