Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. using namespace std;
  5.  
  6. ifstream fin;
  7.  
  8. int main()
  9. {
  10. cout << "Hello world!" << endl;
  11.  
  12. fin.open("a.txt");
  13.  
  14. int tmp = 0;
  15.  
  16. fin >> tmp;
  17.  
  18. cout << tmp << endl;
  19.  
  20. fin.close();
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement