+ 1

How can I see the result of my C++ code?

I practice C++ code on Visual Studio Code. Then, I save the code with the extension '.cpp'. But when I click on the saved C++ file, It directs to me Visual Studio Code. So how can I see the result of the code I wrote on my PC.

13th Sep 2016, 8:08 AM
Chirag Bhansali
Chirag Bhansali - avatar
6 Respostas
+ 2
with which extension
13th Sep 2016, 10:56 AM
Chirag Bhansali
Chirag Bhansali - avatar
+ 2
I compiled it but I couldn't see the result window
13th Sep 2016, 10:57 AM
Chirag Bhansali
Chirag Bhansali - avatar
+ 2
Use Ctrl+F5 in Visual Studio to compile and run. Alternatively, you can type this in cmd: cl /EHsc yourprogram.cpp yourprogram.exe
13th Sep 2016, 11:40 AM
Zen
Zen - avatar
+ 2
Thanks
14th Sep 2016, 1:56 PM
Chirag Bhansali
Chirag Bhansali - avatar
+ 1
Compile your code and run it.
13th Sep 2016, 8:29 AM
Zen
Zen - avatar
0
#include<upstream> using namespace std; int main () { int cin; cin >> cin; cout << "cin: " << cin; return 0; }
25th Jan 2023, 2:45 AM
Raj Goswami
Raj Goswami - avatar