Alright, here is another thing:
Ok, I'm assuming that for this program, you have already created a folder that holds the program.
For example, this program is named "VideoGame1" so somewhere in your C drive, I should be able to search for this program.
Now...since you already have a folder named VideoGame1 in your C drive, don't use the entire path to the file you want to open.
For example, don't use this
|
inFile.open("C:\Testing\one.txt");
|
Instead, use this:
inFile.open("one.txt");
Make sure the file you want to open is in the folder of the program that you are coding.
Also, did you declare
desc
?
Where in the coding of this game is the variable
desc
?
It doesn't look like you declared it. Declare the variable
desc
and then see what happens.
Never mind, I see you declared it as a string.
This is another problem:
Since you are declaring a string, you need to use the string directive
Try this and see what happens.