هل يمكنني ان استغني عن تعم لغة الc واكتفي بتعلم لغة الc++ ؟
ال C++ هي مجرد C + OOP.
يعني لا يوجد فرق في التعلم، الا في هذه الحالات :
* you need portable assembler (which is what C is, really) for whatever reason,
* your platform doesn't provide C++ (a C compiler is much easier to implement),
* you need to interact with other languages that can only interact with and your code consists of little more than the interface, not making it worth to lay a C interface over C++ code,
* you hack in an Open Source project (many of which, for various reasons, stick to C),
* you don't know C++. *
نعم، تقريبًا كل وظائف C تجدها في ++C
اﻹختلاف في أنَّ ++C تزيد بـ:
البرمجة الكائنية OOP
التحميل الزائد للمعاملات Operator overloading
تعدد اﻷوجه Polymorphism
القوالب Template
مكتبة STL
معالج اﻹستثنائات Exception handling
-
والقائمة تطول الباقي تجده هنا
-
إذا أردتَ تعلم أساسيات ++C
بالعربية أنصحك بكتاب اﻹكسير
باﻹنجليزية
التعليقات