Dear friends:
I am writing a program about iteration method.
i want to write a result file after each iteration, and name the file with the iteration number. dat.
how should i do to translate the integer to a string.
Regards
This is a discussion on some problem about string within the C++ Programming forums, part of the General Programming Boards category; Dear friends: I am writing a program about iteration method. i want to write a result file after each iteration, ...
Dear friends:
I am writing a program about iteration method.
i want to write a result file after each iteration, and name the file with the iteration number. dat.
how should i do to translate the integer to a string.
Regards
Look up the ostringstream class (within namespace std).
Right 98% of the time, and don't care about the other 3%.