#include
#include
#include
using namespace std;
int main()
{
ifstream fin;
fin.open("word.txt");
string str;
while (!fin.eof())
{
getline(fin, str);
fin >> str;
cout << str<< endl;
}
fin.close();
}
word.txt第一行始终显示不出来。求解