1
votes

Recently I wrote a program on visual studio in c++ and it runs perfectly on my computer. Then I saved my file on a usb flash drive. But when I try to run the same project on another computer with visual studio then appears that the file with path C/repos/.etc.../.etc./ ... Is not found. I just want to do my projects in university and then run them on my own computer but this error happens. Any suggestions how to fix it?

"then appears that the file with path C/repos/.etc.../.etc./ ... Is not found." - be more specific than that, much more specific. Anytime you're encountering an error the exact, full, verbatim error message should be included in your question, along with a proper minimal reproducible example as complete-code to produce it, and any dependent input clearly specified. as well Edit your question to provide all-of-the-above. - WhozCraig
We'll need more information about which file is not found. - jkb
Are you getting the error when compiling the project, or when running the final executable? Are you using absolute paths to files in the project? Are you using hard-coding absolute paths when opening files in your code? Please be more specific about WHAT is failing exactly. - Remy Lebeau