Name: Anonymous 2009-10-26 22:55
Why does c++ have to be so finnicky about strings? I've looked everywhere but found nothing on how to get ifstream to open a file from user input. Can you guys help me? I want this code to work but it just isn't happening. How can I make it work?
string input;
cin >> input
ifstream myfile;
myfile.open (input);
string input;
cin >> input
ifstream myfile;
myfile.open (input);