TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Where can I find C++ by Example?

12 pointsby dzhar11over 2 years ago
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 &quot;Go by Example&quot; and &quot;Rust by Example&quot; where I have enjoyed these little experiments and well-written text. But where can I find something like &quot;C++ by Example&quot;?<p>Edit 00: What I am looking for is a language tour (I have read Stroustrup&#x27;s &quot;A tour of C++&quot;), but I want something more interactive.

3 comments

mardiyahover 2 years ago
- have an IDE &#x2F; text editor can set in cli for the file to be launched&#x2F;done by compiler<p>- 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<p>- have a new directory,<p>- set it 0 permission means everyone, or 777 on Linux<p>- highly recommended on Ram that is it&#x27;s virtual disk<p>- have a c++ source there<p>- this way only it can simulate REPL - read execute print loop of interpreter act<p>- enjoy your little experiments of well-written c++ text by this EREPL - Edit REPL
stefanos82over 2 years ago
Here you go:<p><a href="https:&#x2F;&#x2F;cppbyexample.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cppbyexample.com&#x2F;</a><p><a href="https:&#x2F;&#x2F;hackingcpp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hackingcpp.com&#x2F;</a><p><a href="https:&#x2F;&#x2F;www.learncpp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.learncpp.com&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;AnthonyCalandra&#x2F;modern-cpp-features" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;AnthonyCalandra&#x2F;modern-cpp-features</a><p><a href="https:&#x2F;&#x2F;cppinsights.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cppinsights.io&#x2F;</a> it&#x27;s a must so you can investigate what gets generated by templates behind the scenes.<p><a href="http:&#x2F;&#x2F;eel.is&#x2F;c++draft&#x2F;" rel="nofollow">http:&#x2F;&#x2F;eel.is&#x2F;c++draft&#x2F;</a> bookmark this, you will need it!<p>Enjoy!
评论 #33074175 未加载
_448over 2 years ago
These two are very good beginner resources:<p><a href="https:&#x2F;&#x2F;pythontutor.com&#x2F;cpp.html" rel="nofollow">https:&#x2F;&#x2F;pythontutor.com&#x2F;cpp.html</a><p><a href="https:&#x2F;&#x2F;www.learn-cpp.org" rel="nofollow">https:&#x2F;&#x2F;www.learn-cpp.org</a><p>The other resources are:<p><a href="https:&#x2F;&#x2F;godbolt.org" rel="nofollow">https:&#x2F;&#x2F;godbolt.org</a><p><a href="https:&#x2F;&#x2F;root.cern&#x2F;cling" rel="nofollow">https:&#x2F;&#x2F;root.cern&#x2F;cling</a><p>More info about Cling is here: <a href="https:&#x2F;&#x2F;blog.llvm.org&#x2F;posts&#x2F;2020-11-30-interactive-cpp-with-cling" rel="nofollow">https:&#x2F;&#x2F;blog.llvm.org&#x2F;posts&#x2F;2020-11-30-interactive-cpp-with-...</a>
评论 #33074182 未加载