r/cpp • • Apr 23 '16

Just started coding with C++

I just started coding with C++ not too long ago, but I've had alot of experience with other coding languages (Java, Javascript, HTML, Python.) But if I'm aiming to make games with C++ one day (After years and years of practice of course) what do I need to learn? What books do you recommend? What exercises should I practice? As far as I know there's no website to 'teach' the subject (Like CodeAcademy and what not), so what would you recommend to get me started?

1 Upvotes

32 comments sorted by

View all comments

2

u/[deleted] Apr 23 '16

If you don't plan on using an ide learn GDB and valgrind.

1

u/[deleted] Apr 25 '16

I find valgrind not too useful for games as a lot of testing has to be done in real gameplay, and valgrind slows things down way too much to make it possible to play while profiling.

I usually just us a class that takes the time between the constructor and destructor calls and dumps it into a file at shutdown. Crude but it catches the worst bottlenecks.

Also I have a shit computer.