+ 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.
6 Respostas
+ 2
with which extension
+ 2
I compiled it but I couldn't see the result window
+ 2
Use Ctrl+F5 in Visual Studio to compile and run.
Alternatively, you can type this in cmd:
cl /EHsc yourprogram.cpp
yourprogram.exe
+ 2
Thanks
+ 1
Compile your code and run it.
0
#include<upstream>
using namespace std;
int main ()
{
int cin;
cin >> cin;
cout << "cin: " << cin;
return 0;
}