Define two objects named outfile1 and outfile2 that can be used to write data from program variables to two different files.

LANGUAGE: C++

CHALLENGE:

Define two objects named outfile1 and outfile2 that can be used to write data from program variables to two different files.

SOLUTION:

ofstream outfile1, outfile2;

Posted in ,