How to save a file in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to save a file in c++

I have written a code

31st Jul 2020, 11:24 AM
Amara narayana Dasari
3 Answers
+ 4
If you've written a C++ file in sololearn then all you have to do is exit and it'll ask you to save. Press save and it will be saved. Outside of sololearn, you can do what Geek said.
31st Jul 2020, 11:29 AM
PresidentOfYes12
PresidentOfYes12 - avatar
+ 4
Use .cpp extension while saving the file
31st Jul 2020, 11:26 AM
Aayush $aini
Aayush $aini - avatar
+ 1
On sololearn : just press the back button and you will be prompted to save that code snippet , just name the file and you can find it in your profile On your pc : just like Geek said , save that file with " .cpp " extension.
31st Jul 2020, 11:29 AM
Arsenic
Arsenic - avatar