{NcsO}ReichstaG
[H]ard|Gawd
- Joined
- Aug 13, 2004
- Messages
- 1,768
I totally forgot my C++. Anyway, let's say I want to create 5 ".txt files" named 1.txt to 5.txt.
How do I add ints to a string in C++ again? I want to do something like this:1.txt
2.txt
3.txt
4.txt
5.txt
Code:
int go = 1;
while(go <=5)
{
ofstream a_file (go + ".txt");
}