Writing to file in a loopThat fixed it, cheers.
Writing to file in a loop[output]error: no matching function for call to ‘std::basic_ofstream<char>::basic_ofstream(std::st...
Writing to file in a loopShould have been more explicit. An example of what failed: [code] string file1 = "data1.txt"; ofst...
Writing to file in a loopThe problem is each loop I want to open a different file. I thought the simplest approach would have...
Homework Question (Program posted)Also, try sum += x; in your loop. At the moment you are adding your input every iteration. For examp...
This user does not accept Private Messages