84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
本人985大三非科班,自学c++想找练手项目自己练练,希望大家给点建议!多谢!
小伙看你根骨奇佳,潜力无限,来学PHP伐。
Chrome V8
C++ 是一门拥有众多特性的语言,根据你想学习的特性,有不同的迷你项目可以练手:
RAII and move semantics - implementunique_ptr
unique_ptr
Operator overloading - implementcomplex
complex
Raw arrays and pointers - implementvector
vector
Memory management and introdue to atomics - implementshared_ptrandweak_ptr
shared_ptr
weak_ptr
Unions and pointers and c-style strings - implementstringwith small string optimization
string
Bit operations - implementbitset
bitset
Memory allocation strategies - implementallocator
allocator
Template metaprogramming - implementtuple
tuple
Algorithms - implementsort
sort
Multithreading, concurrency, locks, condition variables - implementfutureandasync
future
async
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.
std::map
std::unordered_map
map
unordered_map
而综合性的项目,则需要根据你的兴趣或需求进行选择了。
参考:Reddit
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
andweak_ptr
Unions and pointers and c-style strings - implement
string
with small string optimizationBit operations - implement
bitset
Memory allocation strategies - implement
allocator
Template metaprogramming - implement
tuple
Algorithms - implement
sort
Multithreading, concurrency, locks, condition variables - implement
future
andasync
Exceptions - discuss the various exception safety guarantees and how to fulfill them when implementing the above features.
Cache friendly structures - use/measure
std::map
andstd::unordered_map
. Implementmap
as a sorted array. Implementunordered_map
using various hashing strategies - measure performance and discuss tradeoffs.而综合性的项目,则需要根据你的兴趣或需求进行选择了。
参考:Reddit