When i run .\TripleX.cpp it takes me to visual studio and do nothign else?

i run .\TripleX.cpp and takes me to visual studio open the scriopt and do nothing else

Because that’s opening that file in the default application for that file extension. It’s the same as double clicking it in File Explorer.

cl triplex.cpp

That compiles the file triplex.cpp and outputs an executable of the same name i.e. triplex.exe which is the file you want to execute not the .cpp.

.\triplex.exe

You can omit the .exe and it means the same thing.

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

Privacy & Terms