User: Charles1992

  • Public profile

User profile: Charles1992

User info
User name:Charles1992
History
Joined:
Number of posts:5
Latest posts:

Writing to file in a loop
That 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 loop
Should have been more explicit. An example of what failed: [code] string file1 = "data1.txt"; ofst...

Writing to file in a loop
The 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