TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Project Ideas to Learn C++11 Features

1 点作者 koots超过 6 年前
Hello,<p>I know C++03 and I want like to learn modern C++ features(at least C++11), but I always forget them with no practice. Please recommend some mid size project ideas.

2 条评论

danbolt超过 6 年前
I&#x27;m not sure what a good mid-size project would look like, but one thing that really helped me was implementing structures&#x2F;algorithms using C++11&#x27;s features. It aided in not just getting a feel for them, but also what finding out features I liked and didn&#x27;t.<p>An example might be implementing a linked-list or tree with `unique_ptr`, while using conventional pointers for the doubly-linked `prev` part. The goal being exploring the idea of ownership and automatic memory management.<p>Personally, the most helpful way I learned about using C++ was to try features and hear which ones people liked&#x2F;disliked and why. The discussion (and sometimes drama!) made things more memorable.
评论 #19222445 未加载
jaldhar超过 6 年前
Make a roguelike game. A basic one can be implemented in a couple of KLOC and will make good use of STL, algorithms, and memory management. Best of all when you are finished you will have a fun game to play!<p>The annual 7DRL challenge in which you have 7 days to make a roguelike is starting next week. See <a href="https:&#x2F;&#x2F;itch.io&#x2F;jam&#x2F;7drl-challenge-2019" rel="nofollow">https:&#x2F;&#x2F;itch.io&#x2F;jam&#x2F;7drl-challenge-2019</a> for details.
评论 #19225272 未加载