17 ms·
Ask HN: Where can I find C++ by Example?
I want to spend some spare time and have some fun learning C++, because I respect this language. This is my hobby goal.
Many know about "Go by Example" and "Rust by Example" where I have enjoyed these little experiments and well-written text.
But where can I find something like "C++ by Example"?
Edit 00: What I am looking for is a language tour (I have read Stroustrup's "A tour of C++"), but I want something more interactive.
- mardiyah 4y ago- have an IDE / text editor can set in cli for the file to be launched/done by compiler - the cli must has option compile and stop, to have shortest read-execute cycle just to test syntax, have it full to link, so can print to test full - have a new directory, - set it 0 permission means everyone, or 777 on Linux - highly recommended on Ram that is it's virtual disk - have a c++ source there - this way only it can simulate REPL - read execute print loop of interpreter act - enjoy your little experiments of well-written c++ text by this EREPL - Edit REPL
- _448 4y agoThese two are very good beginner resources: https://pythontutor.com/cpp.html https://pythontutor.com/cpp.html https://www.learn-cpp.org https://www.learn-cpp.org The other resources are: https://godbolt.org https://godbolt.org https://root.cern/cling https://root.cern/cling More info about Cling is here: https://blog.llvm.org/posts/2020-11-30-interactive-cpp-with-cling https://blog.llvm.org/posts/2020-11-30-interactive-cpp-with-...
- dzhar11 4y agoThank you!
- stefanos82 4y agoHere you go: https://cppbyexample.com/ https://cppbyexample.com/ https://hackingcpp.com/ https://hackingcpp.com/ https://www.learncpp.com/ https://www.learncpp.com/ https://github.com/AnthonyCalandra/modern-cpp-features https://github.com/AnthonyCalandra/modern-cpp-features https://cppinsights.io/ https://cppinsights.io/ it's a must so you can investigate what gets generated by templates behind the scenes. http://eel.is/c++draft/ http://eel.is/c++draft/ bookmark this, you will need it! Enjoy!
- dzhar11 4y agoThank you!