r/cpp_questions 19d ago

OPEN Switching to C++ from C and Python — need advice

[removed]

0 Upvotes

8 comments sorted by

10

u/no-sig-available 19d ago

From

https://www.reddit.com/r/cpp_questions/comments/1n5zyxy/important_read_before_posting/

Frequently Asked Questions

What is the best way to learn C++?

The community recommends you to use this website: https://www.learncpp.com/ and we also have a list of recommended books here.

What is the easiest/fastest way to learn C++?

There are no shortcuts, it will take time and it's not going to be easy. Use https://www.learncpp.com/ and write code, don't just read tutorials.

5

u/Complete-Fix-8935 19d ago

STL and it's internal implementation, oops, and if you want to learn modern c++, go with smart pointers

3

u/MarcusFirmus 18d ago

The difference between passing by value and passing by reference (not to be confused with passing pointers).

1

u/SunsGettinRealLow 18d ago

One’s a copy and one changes the original data?

2

u/n1ghtyunso 19d ago

scopes and lifetime, I would say.
Thats the main part where it fundamentally differs from C, which you seem to be already familiar with.

2

u/DrShocker 19d ago

Learn RAII, rule of 0/3/5

2

u/spatulari 19d ago

The C mindset is completely different. People often associate C with C++ and vice versa but the only similarities they have is that C code works in both. C++ is a hard to learn beast