I have task in c++ to do but i dont understand what it wants.It says "the program output and input data files name can be embedded in the program source file or read from screen"
can anyone help me explain what it wants? and is there any examples to look at?
You can either prompt the user for the name and save it as a string or character array then use that saved variable to open the file, this should be done with a check to make sure the file they are entering exists and continue prompting them until the user enters a file that does in fact exist. This should be done while reading input, output it doesn't matter as a file should be created regardless.
Reading from the screen I would assumes means reading user input from a prompt asking for the file name.