Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run C++ Code Online?

Is there a website I can go to to run C++ code online? I have seen a few compilers, but is there one that can also receive input from cin? I want one that can basically host a C++ .exe online, and even more preferable is if it is like the VC++ platform.

like image 846
GILGAMESH Avatar asked May 30 '12 16:05

GILGAMESH


5 Answers

You may want to give rextester a try. Currently g++ 4.7.2 with boost libraries and ability to supply compiler args.

Edit Visual C++ is also supported now.

like image 191
ren Avatar answered Oct 13 '22 17:10

ren


http://ideone.com/ Can compile several languages, and supports stdin

like image 45
TJD Avatar answered Oct 13 '22 17:10

TJD


Yes, Ideone can do that. It's possible to specify stdin there.

like image 43
Andrejs Cainikovs Avatar answered Oct 13 '22 18:10

Andrejs Cainikovs


Edit: Microsoft's online compiler seems to no longer be active :(


Microsoft research have made an online version of Visual C++ here: http://webcompiler.cloudapp.net/.

It (currently?) only compiles the code and does not run it so you won't be able to check cin though :(

Running code is now supported.

like image 4
Motti Avatar answered Oct 13 '22 16:10

Motti


Perhaps the following site is what you're aiming for: http://codepad.org/

like image 1
Random Human Avatar answered Oct 13 '22 18:10

Random Human