How do i change the path of a .cpp?

So i made a tic-tac-toe game(PvP) and then made a a version where it was player against AI.

I put both of them in a folder called Tic-Tac-Toe.

BUT now when i try to debug the .cpp it says it cannot find the path because i moved it into a folder.

So is there a way for me to change the path for it to find?
closed account (S6k9GNh0)
We can't begin to imagine what type of environment you're in. Please elaborate.
Im not sure what you mean by environment, but ill try to draw a picture.

BEFORE:
projects>tic-tac-toe(PvP);
projects>tic-tac-toe(PvAI);

AFTER:
projects>tic-tac-toe>tic-tac-toe(PvP);
projects>tic-tac-toe>tic-tac-toe(PvAI);

Do you understand now?
r u using a ide? if it is then messing with file paths will not allow it ot find it
I'm going to assume that you're running in Windows with Microsoft Visual Studio.

All you need to do is right click on your files in the solution editor and "remove" those files from the solution. Then right click on the "Source Files" folder, highlight "Add" and open the file from the new location.

When computerquip asked you about your enviornment he was asking what operating system (windows, MacOS, Linux) you are running and which IDE (Visual Studio, CodeBlocks, MinGW, gcc, etc.) you are using to build your program.

Good luck
Topic archived. No new replies allowed.