摘要: #include#include#include#includeusing namespace std;int main(){ ifstream in("data.txt");//打开文件 if(!in){ cerrwords; while(getline(in,line)){//从文中读取一行... 阅读全文