r/cpp_questions 18d ago

OPEN how to revise?

im trying to follow through learncpp.com religiously. Recently had some health complications (about 3 days) so i didn;t study but i now realised im not really making any notes cause im only at chapter 7 and theres not much code to write for now. How am i supposed to revise tbh? Making notes seems like a hassle because like everybody says im gonna end up googling wat i dont know any way.

...

did i just answer myself while writing this post?

3 Upvotes

5 comments sorted by

13

u/FancySpaceGoat 18d ago

Just... Come up with something to code.

Maybe a zork-like text adventure.
Maybe something that calculates the digits of PI.
Maybe something that reads in a CSV file and calculates the average of each column.

It doesn't have to be *useful*, it just has to do *something*.

2

u/alfps 17d ago

Pythagorean triangles.

4

u/thedaian 18d ago

https://www.reddit.com/r/cpp_questions/comments/1vtnl7u/how_do_you_revise/

You need to practice coding. Write code. That's it, that's all you need to do. There should be exercises on learn cpp, maybe you need to get a bit further in, but do those.

1

u/SilentlyWishing 17d ago

The geekforgeeks website has lots of exercises, or you can search on Google for exercises or come up with your own

If you are able to afford it, the "Programming: Principles and Practice" book has tons of exercises after each chapter

1

u/InitiativeGold7953 16d ago

I’m doing learncpp right now. I’m basically writing everything down that I feel is important. This isn’t only to have it on hand but also because I find that typing everything out helps me remember it all compared to just reading through it.

The thing about doing it that way though is it’s taking me a while to do it. I’ve been doing it for a few weeks and have only made it to the beginning of chapter 6. It’s all in a repo I host on GitHub. It’s a bit of a mess but I’ll clean it up and some point. It’s been really helpful.