How would I get something like this to work?Code:ofstream fout; string filename; cout << "Enter the name of the file: "; cin >> filename; fout(filename);
This is a discussion on Creating file names within the C++ Programming forums, part of the General Programming Boards category; Code: ofstream fout; string filename; cout << "Enter the name of the file: "; cin >> filename; fout(filename); How would ...
How would I get something like this to work?Code:ofstream fout; string filename; cout << "Enter the name of the file: "; cin >> filename; fout(filename);
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
fout.open(filename);