Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4781

C/C++ • Re: Two-dimensional array of character strings in C

$
0
0

Is the transition from C to C++ easy
Probably not. A lot depends on your intentions. If this is a one off project and you just want it to work then stick to what you know if possible. If however you want to develop your programming skills it might be an option.
C was developed to write the Unix operating system and had to be efficient and allow direct access to the hardware. Protecting the programmer from self harm was not an objective.
C++ started as "C with classes" and was a preprocessor that generated C code. Over time it has progressed to be a complex compiled language with an extensive library. Much of the language complexity is to make the library better and more flexible. C is still a subset (with some minor exceptions) so that a correct C program is probably also a correct C++ program.
The obvious major change is the move to object oriented rather than procedural programming. This can take some getting used to but I find it very useful.
If you find C++ too daunting Python might be worth considering. It is object oriented but much less complex.
Do come back if we can be more help.

Statistics: Posted by RogerW — Wed Feb 07, 2024 10:11 am



Viewing all articles
Browse latest Browse all 4781

Trending Articles