I've began learning C++, and I'm having an issue compiling. I am doing so on the Microsoft Visual Studio Command Prompt. When I type cl /EHsc hello.cpp
I get this error:
fatal error C10083: Cannot open source file 'hello.cpp': No such file or directory
I created the file via the command prompt by using
notepad hello.cpp
And I created the file, typed the correct code in (you know... the hello world stuff, haha), saved it.
If anyone could help me, that would be great, thanks!
Use this tool to quickly find your .cpp file, http://www.voidtools.com
After you find it make sure to copy it to the required folder and use the "save as" feature on notepad to save your next files where they should be saved with the correct extension.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.