Learning CPP

Back to Programming Languages forum

Hyuto     2020-10-13 04:51:44
User avatar

Hello.. Basically i code in python and for some reason decide to learn cpp :). I've done some problems with it (please check it if you're free) and found my code style isn't on cpp way. Since i'm not a CS student and dont know a lot of programming, it's really difficult for me to learn it. Is there any good way or great learning path to follow?

Rodion (admin)     2020-10-19 08:24:40
User avatar

Hi Friend!

I had a look at your CPP sources - I'd say in my opinion they are quite sane! You only may want to try choose some popular coding style (perhaps, use some linter) and keep to it. Professional CPP programmers are usually crazy about following some specific style - and, for example, using capitals for variables is not popular approach :)

However note that I'm not CPP programmer myself though I use it occasionally (and started my career somewhere in it years ago). It may be useful to try looking into some larger CPP projects...

Yet another thought, however - nowadays there is no much motivation to learn CPP as it become quite complicated with everything invented in it - but its usage declines by and by.

AmatureHour     2020-11-25 04:17:11

i am doing the same thing. i know some python and now i am working on C. i can say for one thing that i am so glad i did not start with C as some have suggested as i would have probably not made it far. C/C++ is not too fun. what are you looking to do with it? I am not sure myself but i am into aviation so maybe work with simulators or flight controls and aviaonics systems. cheers

Mizel_Almizel     2021-01-29 22:40:45

cpp its good for you for many reason u need only 1- data type 2- for loop 3- if 4- while 5- array, like int a[i], like a[i+1], like array insde array like thta a[b[i]]++, or a[i][j],

should u understand everything with array and u can solve many problems with c++ then u learn pointer and oop and data i have one sheet its good for u https://docs.google.com/spreadsheets/d/1iJZWP2nS_OB3kCTjq8L6TrJJ4o-5lhxDOyTaocSYc-k/edit#gid=84654839

Please login and solve 5 problems to be able to post at forum