I created an empty project called "D" for c++. I just do the basic hello world program and it works just fine. The problem comes when I try to build the same hello world code where I create an object. The class is in a header file (.h). when I try to build the simple code I ran into a pop up that says "Unable to start program '(address where my project is located)\D.exe'. The system cannot find the file specified ." I'm using VS community 2019 for the first time.
you need to add both .cpp files and both .h files to your project.
visual studio likes to put the resulting exe in a sub-folder, so look in /debug and /release (depending on how you compiled) for your .exe file. case in point:
C:\Users\joshu\Documents\Tec\New folder\D\Debug
when it fails to compile, it does not make the .exe file.
Build: 0 succeeded, 1 failed
if it compiles correctly, it will say 1 succeeded, 0 failed instead, or something like that.