← Home ← Back to /g/

Thread 107168523

7 posts 2 images /g/
Anonymous No.107168523 [Report] >>107168565 >>107168742
What advice would you give to a complete and total beginner whose first programming language is C++? asking for a friend or something like that
Anonymous No.107168565 [Report] >>107169332
>>107168523 (OP)
Bjarne Stroustrup's PPP3:
https://www.stroustrup.com/PPP3.html

You can get also get a headstart on your work by using /robowaifu/ 's rentry on the 2ed of the book:
https://rentry.org/PPP2_home
Anonymous No.107168742 [Report] >>107169037
>>107168523 (OP)
learn C first
Anonymous No.107169037 [Report] >>107169332
>>107168742
Personally, I think it's easier to learn C++ correctly than C as a beginner. I wish I had done it that way (rather than the opposite way -- as you suggest -- which is what I did).

Using a C++ std::vector or std::string is far, far easier to learn to use correctly and safely, than is using say, a C array or a C string. Simple as.
Anonymous No.107169332 [Report] >>107169528 >>107170574
>>107168565
>>107169037
Any ideas for projects? I'm thinking of making a game in Unreal or something like that. I feel like the best way for me to learn right now is to engage with something related to my passions but I don't have many ideas. Already quickly made a script to clean up some of my cache on start-up for something I have downloaded
Anonymous No.107169528 [Report]
>>107169332
Yeah making a simple game might be a good idea.
If you find unreal overwhelming with all the garbage it has you can use something more simple like Raylib or SDL
Anonymous No.107170574 [Report]
>>107169332
>I'm thinking of making a game in Unreal or something like that.
That's not a beginner task IMHO. I suggest simply working through PPP3 until you finish the calculator project (a sizeable yet brilliant beginner endeavor). At that point you can decide if you want to move past the command line into graphics, or try for something heavier computationally-speaking, but w/o dipping into GUIs just yet. That's my answer for you as a beginner, anon. Good luck!