+ 6
What makes C++ difficult as people say?
I think case sensitivity of C++ makes it to have more attention while programming rather than it being difficult.
11 Réponses
+ 3
Because 90% of teachers teach C instead of C++ and append OOP to it. Even SoloLearn does that.
Don't bother with C-strings, use std::string.
Don't bother with the static C-arrays, just use std::vector.
Don't bother with pointers, use references.
If you someday encounter the rare case where you need a pointer in C++, don't use C-pointers, use std::smart_pointer.
Voila, easy language for you.
+ 8
Maybe the mix of Object oriented and non object oriented concepts???
+ 6
its just belief of people i have traveled have way in C++ but only few things are difficult..All Good
+ 3
Thnx
+ 3
It can be way harder to grasp as a first language i think. it Doesnt flow as “nicely” as others. But some things, i think are easier. Not having to worry about spacing is quite nice. Also, for me, the compiler is the best teacher there is, lol. With some languages you can do all kinds of weird stuff and the code will just run...doing God knows what. C++ being compiled is great because it stops you dead in your tracks (mostly?) if u mess up.
+ 3
I think that most people (me too) find C++ difficult to learn not cause case sensitivity (all C style languages are), but
because about memory management. Infact, other modern languages like Java have automatic Garbage collection, so you don't care about Pointers and so on. But C++ is faster than Java, C# etc. because it is directly compiled into machine code. Java, C# and Python no (they are first compiled in intermediate language)
+ 2
In general: pointers
+ 1
Thanks man