Hi, I'm trying to create a quick and small programs that works when you press F9, it should create files on my desktop using "ofstream" from A to Z. I can't get it to run when i put ofstream in a for cycle. Here is the code to see it better.
#include <cstdlib.h>
#include <iostream.h>
#include <conio.h>
#include<fstream.h>
//------------------
void main()
{
int i;
char letras[3];
letras[0]='a';
letras[1]='b';
letras[2]='c';
for(i=0;i<3;i++)
ofstream print(letras);
}
thanks you so much for any help.