#include
#include
#include
using namespace std;
int main()
{
ifstream fin;
fin.open("word.txt");
string str;
while (!fin.eof())
{
getline(fin, str);
cout << str<< endl;
}
fin.close();
}
#include
#include
using namespace std;
int main()
{
ifstream fin;
fin.open("word.txt");
string str;
while (!fin.eof())
{
getline(fin, str);
cout << str<< endl;
}
fin.close();
}