C++有哪些练手项目呢?
伊谢尔伦
伊谢尔伦 2017-04-17 13:29:51
[C++讨论组]

本人985大三非科班,自学c++想找练手项目自己练练,希望大家给点建议!多谢!

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

全部回复(2)
天蓬老师

Chrome V8

高洛峰

C++ 是一门拥有众多特性的语言,根据你想学习的特性,有不同的迷你项目可以练手:

  • RAII and move semantics - implement unique_ptr

  • Operator overloading - implement complex

  • Raw arrays and pointers - implement vector

  • Memory management and introdue to atomics - implement shared_ptr and weak_ptr

  • Unions and pointers and c-style strings - implement string with small string optimization

  • Bit operations - implement bitset

  • Memory allocation strategies - implement allocator

  • Template metaprogramming - implement tuple

  • Algorithms - implement sort

  • Multithreading, concurrency, locks, condition variables - implement future and async

  • Exceptions - discuss the various exception safety guarantees and how to fulfill them when implementing the above features.

  • Cache friendly structures - use/measure std::map and std::unordered_map. Implement map as a sorted array. Implement unordered_map using various hashing strategies - measure performance and discuss tradeoffs.

而综合性的项目,则需要根据你的兴趣或需求进行选择了。

参考:Reddit

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号