Help

#include <fstream>
#include <iostream>
using namespace std;
int main()
{
int a, b, s;
ifstream fd("Duom.txt");
fd >> a >> b;
s = a + b;
fd.close();
cout << s << endl;
}

Hey guys. Could you explain me, where this "Duom.txt" file should to be? In wich directory or folder?
It should be in the working directory of the program -- generally speaking, in the same folder as the program.
Topic archived. No new replies allowed.