Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <fstream>
- #include <string>
- using namespace std;
- int main()
- {
- std::string string1;
- std::ifstream ist("input.txt");
- int n=0;
- while(n<10)
- {
- std::getline (ist,string1);
- std::cout << string1<<"\n";
- if (ist.eof()){ return 0;}
- n++;
- }
- cout << string1 << "\n";
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement