if i have the following code
#include <iostream.h>
#include <conio.h>
#include <fstream.h>
#include <assert.h>
#include <STDIO.h>
//LEVEL ONE FUNCTION PROTOTYPES///////////////////////////////////////////
void SaveToDisk(ofstream &neil);
int main()
{
clrscr();
ofstream neil;
SaveToDisk(neil);
neil.close();
getch();
return 0;
}
void SaveToDisk(ofstream &neil)
{
neil.open"test_file.txt");
//why wouldn't neil.open(test_file.cstr()); work?
assert(! neil.fail());
neil<<1234<<endl;
}
where is the number1234 outputted to?-my floppy disk?
also, why couldn't i use neil.open(test_file.cstr()); where i have the comment?