c++ and cmd | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

c++ and cmd

How i can run my c++ file with comand prompt??

18th Apr 2019, 6:41 PM
AndreasZ
AndreasZ - avatar
5 Réponses
+ 9
"path/filename.exe"
18th Apr 2019, 6:46 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 8
AndreasZ .exe file will be created automatically when your code will compile successfully
18th Apr 2019, 7:00 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 1
For example with GCC: Create executable file from source file main.cpp: g++ -o output_file.exe main.cpp Run executable file: ./output_file.exe
18th Apr 2019, 7:10 PM
Anna
Anna - avatar
0
how i can create an .exe file?
18th Apr 2019, 6:53 PM
AndreasZ
AndreasZ - avatar