搜尋

首頁  >  問答  >  主體

C++有哪些练手项目呢?

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

伊谢尔伦伊谢尔伦2804 天前468

全部回覆(2)我來回復

  • 天蓬老师

    天蓬老师2017-04-17 13:31:51

    Chrome V8

    回覆
    0
  • 高洛峰

    高洛峰2017-04-17 13:31:51

    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 stgies - sas sooopers> >

    • 而綜合性的項目,則需要根據你的興趣或需求進行選擇了。

    參考:Reddit

    回覆
    0
  • 取消回覆