Updating my cellphone bill program

I have this program that calculates and prints a cell phone bill. I've been stuck at how to approach this task. How would I update the program to prompt the user to enter the name of an input file (using a string type only) and the name of an output file that opens the files with the name.c_str() function? Any help would be greatly appreciated!
This is all in the order in which you do things, you would prompt the user for the file names early on in the program and save that data to a pair of strings. You would then use these strings to open the fstream objects. You use the "c_str()" member function to convert the string into a char* object that the fstream objects can use to open the files.
Last edited on
Topic archived. No new replies allowed.