C++有哪些练手项目呢?
伊谢尔伦
伊谢尔伦 2017-04-17 13:29:51
0
2
404

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

伊谢尔伦
伊谢尔伦

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

reply all (2)
Peter_Zhu

Chrome V8

    小葫芦

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

    • RAII and move semantics - implementunique_ptr

    • Operator overloading - implementcomplex

    • Raw arrays and pointers - implementvector

    • Memory management and introdue to atomics - implementshared_ptrandweak_ptr

    • Unions and pointers and c-style strings - implementstringwith small string optimization

    • Bit operations - implementbitset

    • Memory allocation strategies - implementallocator

    • Template metaprogramming - implementtuple

    • Algorithms - implementsort

    • Multithreading, concurrency, locks, condition variables - implementfutureandasync

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

    • Cache friendly structures - use/measurestd::mapandstd::unordered_map. Implementmapas a sorted array. Implementunordered_mapusing various hashing strategies - measure performance and discuss tradeoffs.

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

    参考:Reddit

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!