Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include<iomanip>
  2. #include<iostream>
  3. #include <fstream>
  4. using namespace std;
  5. int main()
  6. {
  7.   ofstream file;
  8.   ifstream gile;
  9.   file.open("output.txt");
  10.   gile.open("input.txt");
  11.   int x,y;
  12.   gile>>x>>y;
  13.   cout<<x<<y;
  14.   x=x+y;
  15.   cout<<x;
  16.   file << "Привет, мир!";
  17.   file.close();
  18.   return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement