Nothing wrong!!! And yet I get this error:
Code:
#include <cstdlib>
#include <iostream>
#include <conio.h>
using namespace std;
int main( void )
{
ofstream out_file;
out_file.open("test1.txt");
out_file << "This_Is_A_Test_File" << endl;
out_file.close();
return 0;
}
There is nothing wrong with this code, and yet:
Quote:
Originally Posted by DevC++
aggregate `std::ofstream out_file' has incomplete type and cannot be defined
Please help, this is just like the example script that tons of other sites give too!
Thanks, August.