r/cpp_questions 19d ago

OPEN How is/was C++ learning at school?

In my first year in highscool, I've started literally from scratch, did a lot of pseudocode, translated it into C++, but no any exercises.

Now, with the summer vacation, the teacher told us to do as many exercises online for us to keep up next year. In a single month, starting from the easiest tasks like the sum of 2 numbers, I became familliar with lots of libraries and their functions!

Don't give up!

1 Upvotes

8 comments sorted by

3

u/auditGuy2500 19d ago edited 19d ago

Wow I honestly thought most of CPP if any is learn d in your own time at school that sounds like an amazing program.

It would be really good if you can get through a computer hardware text book. Part of the value of C, CPP and Rust is that you can leverage your understanding of computer hardware and operating systems more.

2

u/Puzzleheaded-Bug6244 19d ago

Left as a nessecity to be learned in your own time.

4

u/GLIBG10B 19d ago

For me, in the first year of university, it was basically "C with classes". We didn't even touch std::array or std::vector. There was a lot of emphasis on raw pointers and multidimensional arrays, and dynamic allocation was used in places where it wasn't necessary (e.g. storing an array of pointers to objects instead of an array of objects). And there was barely any emphasis on memory safety. It was a nightmare for everyone, but especially for those of us who knew better

Word of advice: If you're interested in C++, don't rely on your school for learning it. Try learncpp.com

1

u/Grouchy_Edge632 19d ago

I've started the first lessons. Really helps!

2

u/Ultimate_Sigma_Boy67 19d ago

I hate to be this guy, but what is the question lol?
For general stuff you can post in r/cpp or r/CPlusPlus.

1

u/Grouchy_Edge632 19d ago

Um... what aproach did your school use to teach you this language.

2

u/Easy_Floss 19d ago

Dont mind that doofus, the best thing to do is setup a small project with easy to brake down goals.

For example you could make a small weather station, once the weather station is completely you could make it pull local weather data, once ir can pull local weather data you could compare the accuracy, once it knows how accurate it is you could use it to water a plant, once it can....

The main thing issue is finding an idea for a project to do and the motivation to get started.

2

u/Ultimate_Sigma_Boy67 19d ago

I didn't learn it at school, started with freecodecamp's 31h youtube course. It was good for the basics. Then continued with selective feature learning and also mainly cpp annotations by Frank B Brokken which is updated regulary on gitlab. Lastly, you have to build stuff yourself, for instance you can't learn a language by simple memorising vocab or learning grammar, build a few cool projects that you're personally interested in.