Hello.
This is my program:
#include <iostream>
#include <cstdlib>
#include <fstream>
using namespace std;
int main()
{
ifstream a;
ifstream b;
ofstream c;
a.open("a.txt");
b.open("b.txt");
c.open("c.txt");
int x;
a >> x;
b >> x;
c << x;
a.close();
b.close();
c.close();
system("pause");
return EXIT_SUCCESS;
}
In file "a" I have a number 1, in file "b" I have a number 5. How should I use the tie function in order to get the integer "1" in file "c"?