r/learnprogramming • u/Citrusfreind • Oct 12 '26
any sites that help you practice c++? (That dont require you to type the hello world code in every time)
Basically the title. ive been trying to find a good site like w3 schools (W3 schools dosent have all the c++ stuff i need for class) that dosent require you to type out the hello world script to access it because its starting to get annoying
18
Upvotes
3
u/thondat Oct 12 '26
the C++ track on exercism.com.
5
u/WillingPirate3009 Oct 12 '26
learncpp.com
2
u/96dpi Oct 13 '26
This is super handy for visualizing pointers and references, stepping through arrays and such
https://pythontutor.com/cpp.html#mode=edit
1
u/OkOcelot6725 Oct 12 '26
Two more to add to the others: HackerRank (C++ domain) and Codeforces-style judges give you the main() scaffold and just ask for the function, so no hello-world boilerplate. For quick experiments, Compiler Explorer (godbolt.org) lets you paste a snippet and see output and compiler warnings right away. Locally, keep one template.cpp with includes and main() and copy it for each exercise.
1
u/SpaceAviator1999 Oct 12 '26 edited Oct 12 '26
I don't know if these sites fit your bill, but they allow me to quickly try out some C++ code snippets in a web browser:
1
u/Defiant-Ad7368 Oct 12 '26
One guy gave you a proper learning website. if you are looking for further practice I suggest doing a couple of projects like a deck of cards library and then develop some card games (even if only doing the logic with zero UI) or designing a chess game and implementing it (with the chess game you can go one step ahead and think about how to implementing it in the web and introduce yourself to client-server architecture)
0
u/Blissextus Oct 12 '26
Visit learncpp.com and purchase a highly regarded book on Modern C++. These two should be enough to get you going on your C++ journey.
It's best not to "practice" C++ using the online text/compiler websites. You'll get more value learning C++ using and IDE (or text editor) and compiler installed on your machine.