r/cpp_questions • u/Dear-Air_24 • 2d ago
OPEN Where to start learning C++?
Hi everyone! I want to start learning C++, but Iām not sure where to begin. As my first goal, I plan to build a simple 3D viewport to understand how everything works in practice. Could you please advise on where a beginner should start?
18
Upvotes
6
u/shivazgodz 2d ago
A 3D viewport isn't exactly a simple first project sure maybe a long tterm goal. . . C++ itself doesn't provide rendering capabilities, you need something like OpenGL, Direct3D, or Vulkan, along with libraries for window management and math. so then you're going to be learning multiple things at once, then you'll get overwhelmed and want to quit. You have to have real real real dedication and stubbornness to keep going. Lot's of things break, make no sense. You'll forget a lot of things.
anyways
Head on over to https://www.learncpp.com/
Learn all the basics . . . and start making simple boring stuff. Calculator, tic-tac-toe, text based rpg. ecct ect. The same things over and over again. Learn best practices, find what works for you.
7
u/thedaian 2d ago
As mentioned here: https://www.reddit.com/r/cpp_questions/comments/1n5zyxy/important_read_before_posting/
The website learncpp.com is the best place to start learning.Ā
If you want to learn graphics, there's also learnopengl.com
2
u/Discordbothost 1d ago
Try raylib's core_3d_camera_mode example for the viewport. Run the cube and grid first, then make the left and right arrows change camera.position.x. You'll see what that one C++ change does immediately.
1
u/Aghoradas 1d ago
Don't sleep on cppreference.com either.
1
u/neerajprime 19h ago
In todays world
1
u/dajiru 16h ago
Start with the basics. Before to run you have to learn how to walk...
Freecodecamp in YouTube. A lot of c++ courses. I'm actually following one of... 31h!
1
u/FounderOfYou 2d ago
studyplan.dev is a good place to start from.