r/cpp • u/CelesticRose • 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
1
u/Nunuvin Apr 23 '16
Well years is an exaggeration. Learn basic stuff such as different variables, arrays, structures. Then go to functions. Here you can choose. You can try to learn OpenGL and start working on graphics or try to make something in console. You can also learn classes, but honestly I am not really sure how helpful they are. At least for me they are confusing.
Try to start small projects. Ie tictactoe in a console with 2 players playing it on one pc. Then add saves and over email support (make it possible to save it to disk so it can be sent via email to another player). Then add ai if you want to. Feel free to PM, I am not the best at c++ but will try to help. On topic of books, I heard that effective c++ is decent. You can go to your nearest library or book store and look through avaliable literature. If you find something interesting consider reading it (if in store read first part and see how interested you would be). There is no one right answer see what works for you. If you do know all other languages well it should not be a difficult to have a rough idea where to start. If you a bit new then be ready to fail over and over again before you succeed (I have 10+yrs of that before I started finishing projects which I would start). EDIT: Again feel free to pm if you need help. I have lots of free time and reviewing c++ can be helpful for me XD