Lesson: Your First Program

Hey there.
I need help directly at the beginning of the course. I did everything as it was said in the video, I tried to compile it but it is not working. I attached a picture what is there written. Any ideas what is wrong?
Thank you in advance for the help.

Hi icebrenner,

Your code looks fine on first sight.

Have a look at the powershell part where you are executing your program:

I think calling “.\hello.cpp” is not correct as you are calling your sourcecode file. You should run insetead “.\hello” or “.\hello.exe” that will call the executable file instead. Just a guess.

Tomas

1 Like

Hello Tomas,

Thank you very much for the help, I am so dumb :sweat_smile:
For some reason I was 100% sure that they wrote .cpp to the end in the video also, I even rewatched it a few times. It was driving me crazy, cause I’ve also seen that the code was good. :grinning_face_with_smiling_eyes:
Have a nice day.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms