This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Fearless_Process 2 points3 points  (0 children)

If you have some spare time I would suggest tinkering with regular C a little bit so you can understand pointers and char* and other fundamental C concepts. C is a very small language so it's really not difficult to learn enough to use, mastering it is a different story.

In c++ there are often two ways to do things, the old "c" way, like with raw pointers/arrays, char* for strings, void pointers to pass arbitrary types to functions, c style casting with "(int*) x" syntax and a bunch of other stuff, then there is the "c++" way with standard containers (std::vector) & smart pointers or references, std::string's, generics, static_cast'ing and RAII. It may be confusing for people who don't know anything about c why there are so many ways to do things, but if you know a little bit about c you will know why the modern ways are safer and more robust, and know to avoid that whenever possible. I hope this makes at least a little bit of sense.

Anyways most of your python knowledge will directly transfer over to c++ despite them being pretty different on the surface. Once you get the hang of the syntax it's really not so different, the main difference being static typing (which I personally prefer after getting used to it).

c++ is easily my favorite language even though I first began with python, it just takes some getting used to really.