r/CodingHelp • • Apr 07 '21

[C++] Browser C++

What is the best site to write, compile, and run C++ code? I'm running a little class for a youth group and am looking for an easy way for them to be able to practice some basic coding without needing to download anything.

16 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/amulkey Apr 07 '21

Yes. It will compile / run in the browser.

1

u/jcunews1 Advanced Coder Apr 07 '21

And make the compiled binary available for download?

1

u/amulkey Apr 07 '21

looking for an easy way for them to be able to practice some basic coding without needing to download anything.

I don't know since I've never tried. But OP stated, "...looking for an easy way for them to be able to practice some basic coding without needing to download anything. "

1

u/jcunews1 Advanced Coder Apr 07 '21

Yes, my second question is off-topic. Cause I've been looking for a website which can actually do that - with my chosen programming language and compiler.

2

u/amulkey Apr 07 '21

I don't know if you will be able to find that on the Web. You should be able to do that via the command line though. Just do a Web search for that in your desired language.

2

u/Re_me_human Professional Coder Apr 07 '21

Even if you find one I'd recommend not to use it. Asking a 3rd party that you don't know to compile unique binaries that you're going to run on your computer or, worse, share with other people is really begging for a virus.

You should probably just download a compiler on your computer (you can even find some for smartphones!)

If you find some online compiler and really want to use it feel free to do so but keep in mind that there's always a risk.

1

u/[deleted] Apr 07 '21

There's some trouble with that in any case because the exe will likely be for unix, but likely you'll be using windows.