I’m working on the triplex game and every time I try to compile and run the game it opens my code in Visual Studio 2017 instead of running the game. It compiles alright but then opens VS 17. I’m using Power shell so I need to use .\TripleX.cpp
Thanks for the help!
DanM
August 24, 2019, 9:05am
2
Because that’s what you’re telling it to do. You’re saying to launch triplex.cpp in the default application.
You want the .exe not the .cpp
To clarify that a bit.
The, .cpp is your source code file. Its a text file basically.
The .exe is the executable and the thing you use to run an application.
./ is used with terminal or command line and is one way that basically starts/opens the following file. With cpp it apparently opens Visual Studio.
And that’s how you learn so from now on you will always know what an exe is for
Of course, you can always dig deeper later and learn much more about exe’s too.
That makes sense. Thanks for the clarification!
system
Closed
September 1, 2019, 10:00am
5
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.