deleted cpp file after compiling? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

deleted cpp file after compiling?

Hi So i have a cpp file compiled with g++ with the old school command prompt. g++ -o app.exe main.cpp it works fine it created the app.exe just as i expected. I did a few more code on the cpp file and compiled it again. this time I typed the compile script incorrectly. g++ app.exe -o main.cpp it didnt compile and it deleted my cpp file. what happen? the file is not on my recycle bin either? this scares me ;(

6th Apr 2017, 11:52 AM
Evil Minion
Evil Minion - avatar
1 Answer
+ 1
If it's gone, it's gone. Just avoid the typo in the future. I'd recommend going to an IDE to save yourself from future CL errors.
8th Apr 2017, 3:15 AM
Thomas Rudolph
Thomas Rudolph - avatar