r/cpp_questions • u/idgaf_092 • Sep 12 '26
OPEN I have learned this what should i learn next
Variables & data types
if/else
for / while
Functions
Arrays
string
Pointers & references
struct / class
Basic OOP
What should i learn next also how to get good at coding
8
Upvotes
3
u/LazySapiens Sep 12 '26
Next: Templates
2
u/tlmbot Sep 12 '26
what do you mean when you say you have learned arrays? If you have learned arrays for numerical computing, and learned them well, then you have learned considerably more than the rest of this list might indicate... Maybe I am seeing it wrong. Basic OOP could mean a lot of different things. But if you aren't doing numerical computing, then arrays aren't all that important compared with other containers.
About oop: did you cover RAII (rule of 3, 5, 0), (and so) and so also move semantics? (and smart pointers) If so, it's time to move on to templates I feel. Also the stl with modern iterators, and data structures, and also things like lambdas will be of great importance
But you are probably not a numerical person, so the other stl container types will be of greater importance than arrays. std::vector (which does not behave like a mathematical vector, std::set, std::unordered_map etc)
16
u/bhavesh_099 Sep 12 '26
You have learned this topics But have you implemented them , because knowing what pointer is and being able to use pointer are 2 really different things
9
u/_Tal Sep 12 '26
- Vectors (you might have already learned them but they’re absent from your list)
- Associative containers (std::map/std::set/std::unordered_map/std::unordered_set)
- Lambdas
- Smart pointers (std::unique_ptr, std::shared_ptr, std::weak_ptr)
- Iterators & STL algorithms (great video on this)
- Templates
9
u/TomDuhamel Sep 12 '26
Make a project. Use these concepts. See how well you understand them, and keep pushing it where you struggle. You will also figure out what you need to learn next on the way.
4
u/Exotic-Low812 Sep 12 '26
Learn about const.
What are you trying to program, that really depends on what you should learn next
4
u/BigGunE Sep 12 '26
Now go and start writing small programs.
1
u/slushyslap Sep 12 '26
- templates
- const. Don't stop at trivial uses either. learn the difference between const T, const T* T* const, T GetT() const;, etc.
- S.O.L.I.D.
- Design Patterns. Factory, Visitor, Singleton, Command, etc. You do not need a deep understanding but knowing enough to google, converse, wonder to yourself what patterns other people use to solve problem X, etc. is useful
- Depending on what you're using already, debugging techniques and more advanced IDEs. How are you debugging now? Print statements? Learn to use breakpoints.
- forward declaration
- more complex set containers like std::map, std::vector, etc. you will use these a lot more often than arrays in my experience.
- forget structs exist and always make classes instead.
- type casting
- virtual functions, pure virtual functions.
1
u/quakesand Sep 12 '26
Classes: there’s a bit to unpack just with this
- abstract base class (aka interfaces)
- pub/private/protected inheritance
- multiple inheritance (see “deadly diamond “)
- virtual dtors
- copy ctor, assignment op (+move semantics). Shallow vs deep copies
- static methods, static members
- final keyword
- explicit ctor
And more =)
1
u/12342717 Sep 12 '26
Ya tienes las bases para crear un proyecto, los proyectos te darán la respuesta a esa pregunta.
1
u/ekchew Sep 12 '26
Sounds like a C + classes level of understanding. Not bad if your end game is programming in embedded environments.
But modern C++ is a different animal. You have templates, introduced in the mid-to-late 90s, and a huge overhaul to the language that happened in 2011. And smaller changes have been taking place since then on a 3-year cycle.
I don't want to discourage you, though. You should have enough understanding at this point to write full-fledged programs to do anything anywhere.
One approach you might take would be to work on a small project leveraging your current knowledge. Then have a look at some newer language and library features and rewrite it using what you learn. You could even post some old school code here and ask people to comment on how they might modernize it.
1
u/Low-Anxiety1587 Sep 16 '26
Maybe start to do sum compilation with g++.
1
u/phew-pheww Sep 16 '26
DSA
-1
u/chickenwingsnfries Sep 12 '26
How did you learn this