Project ideas to become good at C++

前端 未结 5 1611
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-01 22:01

I want to get into C++ team at work. Their job is to write CGIs in C++ (mainly but not limited to). I know basic C++. Reading the list at C++ book guide question on SO, I\'ve go

5条回答
  •  花落未央
    2021-02-01 22:34

    The best way to become better at C++ is... writing C++ code. Start with a simple raytracer without any external dependencies (just write output to a PPM file).

    1. I think this is an interesting enough problem and will let you get started with the language core,
    2. The lack of dependencies will reduce distractions with potentially complex third-party library idioms which you can't appreciate yet and annoying things like libraries and linking. Plus, you will have less C++ quirks blow up in your face.

    Build on that after you have more experience. Go back, refactor your code, add more complex features, third-party libraries (e.g. write a JPEG output, start using bits of boost, like smart pointers).

    Rinse, repeat.

提交回复
热议问题