Modding my code.

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!
Thanks!
Last edited on
cin can read filename with the condition that this file name does not contain whitespace (since then it would read some of it). I guess this can be used to ask for input file and output file by the user.

name.c_str() returns a const char* null terminated c string. What do you want to do with it?
Basically im given an input file which has phone records of a cell phone bill program I previously wrote and take the user given records and output them to a user specified program in the same output format (or better)
Topic archived. No new replies allowed.