I'm trying to display the relative file path to my program file in a cout statement so it appears on the screen. This is what I have written down, but the computer mistakes the backslash as an exit sequence. It presents the following error:
Fross12.cpp:62:12: warning: unknown escape sequence: '\C'
This is the code I have written that I'm working with:
cout << "C:\COSC-1303\Assignment-12> Fross12.exe < big-coin-file.txt" << endl;
What I want is to have the computer display the following:
C:\COSC-1303\Assignment-12> Fross12.exe < big-coin-file.txt
Please login or Register to submit your answer