Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void question(string n)
- {
- string line;
- ifstream myfile("/Users/kirillgorbakon/Desktop/C++/millioner/millioner/test1.txt");
- if (myfile)
- {
- while (getline(myfile, line))
- {
- if (line == n)
- {
- myfile.close();
- }
- else
- {
- cout << line << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement