സി++
| ശൈലി: | Multi-paradigm |
|---|---|
| പുറത്തുവന്ന വർഷം: | 1983 |
| രൂപകൽപ്പന ചെയ്തത്: | ബ്യാൻ സ്ട്രൗസ്ട്രെപ് |
| ഡാറ്റാടൈപ്പ് ചിട്ട: | Static, unsafe, nominative |
| പ്രധാന രൂപങ്ങൾ: | മൈക്രോസോഫ്റ്റ് വിഷ്വൽ സി++, ജി++, ബോർലാന്റ് സി++ ബിൽഡർ |
| വകഭേദങ്ങൾ: | ISO/IEC C++ 1998, ISO/IEC C++ 2003 |
| സ്വാധീനിക്കപ്പെട്ടത്: | സി, സിമുല, അഡ 83, ALGOL 68, CLU, ML |
| സ്വാധീനിച്ചത്: | അഡ 95, സി#, ജാവ, PHP, പേൾ, ഡി, ഐകിഡോ, ഡാവോ |
നിമ്നതലത്തിലും ഉന്നതതലത്തിലുമുള്ള പ്രോഗ്രാമുകൾ തയാറാക്കാൻ പര്യാപ്തമായ ഒരു പൊതുപയോഗ ഒബ്ജക്റ്റ് ഓറിയന്റഡ് കമ്പ്യൂട്ടർ പ്രോഗ്രാമിങ് ഭാഷയാണ് സി++.[1]
ഉള്ളടക്കം |
ചരിത്രം [തിരുത്തുക]
1983-1985 കാലത്ത് ബ്യാൻ സ്ട്രൗസ്ട്രെപ് ആണ് ഇത് വികസിപ്പിച്ചെടുത്തത്. 1983 ന് മുൻപ്, അദ്ദേഹം സി പ്രോഗ്രാമിങ് ഭാഷ പുതുക്കി ചേർത്ത് അതിനെ സി വിത് ക്ലാസ്സെസ് എന്ന് വിളിച്ചു. ഇതിനു വേണ്ടി അദ്ദേഹം പ്രോഗ്രാമിങ്ങിൽ 'ഒബ്ജക്റ്റ്’ എന്ന ആശയം സിമുല എന്ന കമ്പ്യൂട്ടർ ഭാഷയിൽ നിന്ന് കടമെടുത്തു, കൂടെ സിയുടെ ശക്തിയും ലാളിത്യവും. 1983 ലാണ് സി++ എന്ന പേര് ഇതിന് നൽകിയത്.
സവിശേഷതകൾ [തിരുത്തുക]
- ഒബ്ജക്റ്റ് ഓറിയന്റഡ് കമ്പ്യൂട്ടർ പ്രോഗ്രാമിങ് (object oriented)- അത്യധികം സങ്കീർണങ്ങളായ കമ്പ്യൂട്ടർ പ്രോഗ്രാമുകൾ ഇതുപയോഗിച്ച് വികസിപ്പിച്ചെടുക്കുവാൻ കഴിയും.
- ഇൻഹെറിറ്റൻസ് ( Inheritance) - സമാനസ്വഭാവമുള്ള പ്രോഗ്രാം ഭാഗങ്ങൾ ഒന്നിലധികം പ്രാവശ്യം ഒന്നിലധികം പ്രാവശ്യം എഴുതുന്നതൊഴിവാക്കാൻ സാധിക്കുന്നതു മൂലം പ്രോഗ്രാമ്മിങ്ങ് സമയം ലാഭിക്കാൻ സാധിക്കുന്നു.
- എൻക്യാപ്സുലേഷൻ (Encapsulation)- ക്ലാസ്സുകളുടെ ഉപയോഗം ദത്തങ്ങളൂടെയും നിർദ്ദേശങ്ങളുടെയും സുരക്ഷിതത്വം ഉറപ്പാക്കുന്നു.
- പോളിമോർഫിസം (Polimorphism) - സങ്കീർണ്ണമായ പ്രോഗ്രാമ്മിങ്ങ് നിർദ്ദേശങ്ങങ്ങൾക്ക് ലളിതമായ ഒരു കവചം സൃഷ്ടിക്കുന്നു
ഹലോ വേൾഡ് പ്രോഗ്രാം [തിരുത്തുക]
താഴെ സി++ൽ ഉള്ള ഒരു ഹലോ വേൾഡ് പ്രോഗ്രാം മാനകരൂപത്തിലും, ഏറെ പ്രചാരത്തിലുള്ള ടർബോ സി++ കമ്പൈലർ രീതിയിലും കൊടുത്തിരിക്കുന്നു. [2][3]
| മാനക രൂപം | ടർബോ സി++ രൂപം |
|---|---|
#include <iostream> int main() { std::cout << "Hello, world!"<< std::endl; return 0; } |
#include <iostream.h> void main() { cout<<"Hello, world!\n"; } |
ഈ പ്രോഗ്രാം തരുന്ന ഫലം (ഔട്ട്പുട്ട്) താഴെ പറയും പ്രകാരമായിരിക്കും.
''Hello, world!'' |
വിവിധ കംപൈലറുകൾക്കനുസരിച്ച് സി ++ പ്രോഗ്രാമ്മിൻറെ സ്ട്രക്ട്ച്ചറുകൾ ചെറുതായി വത്യാസപ്പെട്ടുകൊണ്ടിരിക്കും.
ഇവയും കാണുക [തിരുത്തുക]
അടിക്കുറിപ്പുകൾ [തിരുത്തുക]
- ↑ C++ The Complete Reference Third Edition, Herbert Schildt, Publisher: Osborne McGraw-Hill.
- ↑ Stroustrup, Bjarne (2000). The C++ Programming Language (Special Edition ed.). Addison-Wesley. pp. 46. ISBN 0-201-70073-5.
- ↑ Open issues for The C++ Programming Language (3rd Edition) - This code is copied directly from Bjarne Stroustrup's errata page (p. 633). He addresses the
std::endlissue. Also see www.research.att.com and www.delorie.com/djgpp/ for detail on the valid implicit return value of main. The implicit return of zero is not available for other functions.
അവലംബം [തിരുത്തുക]
- Abrahams, David; Aleksey Gurtovoy. C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond. Addison-Wesley. ISBN 0-321-22725-5.
- Alexandrescu, Andrei (2001). Modern C++ Design: Generic Programming and Design Patterns Applied. Addison-Wesley. ISBN 0-201-70431-5.
- Becker, Pete (2006). The C++ Standard Library Extensions : A Tutorial and Reference. Addison-Wesley. ISBN 0-321-41299-0.
- Alexandrescu, Andrei; Herb Sutter (2004). C++ Design and Coding Standards: Rules and Guidelines for Writing Programs. Addison-Wesley. ISBN 0-321-11358-6.
- Coplien, James O. (1992, reprinted with corrections 1994). Advanced C++: Programming Styles and Idioms. ISBN 0-201-54855-0.
- Dewhurst, Stephen C. (2005). C++ Common Knowledge: Essential Intermediate Programming. Addison-Wesley. ISBN 0-321-32192-8.
- Information Technology Industry Council (2003-10-15). Programming languages — C++ (Second edition ed.). Geneva: ISO/IEC. 14882:2003(E).
- Josuttis, Nicolai M. The C++ Standard Library. Addison-Wesley. ISBN 0-201-37926-0.
- Koenig, Andrew; Barbara E. Moo (2000). Accelerated C++ - Practical Programming by Example. Addison-Wesley. ISBN 0-201-70353-X.
- Lippman, Stanley B.; Josée Lajoie, Barbara E. Moo (2005). C++ Primer. Addison-Wesley. ISBN 0-201-72148-1.
- Lippman, Stanley B. (1996). Inside the C++ Object Model. Addison-Wesley. ISBN 0-201-83454-5.
- Stroustrup, Bjarne (2000). The C++ Programming Language (Special Edition ed.). Addison-Wesley. ISBN 0-201-70073-5.
- Stroustrup, Bjarne (1994). The Design and Evolution of C++. Addison-Wesley. ISBN 0-201-54330-3.
- Sutter, Herb (2001). More Exceptional C++: 40 New Engineering Puzzles, Programming Problems, and Solutions. Addison-Wesley. ISBN 0-201-70434-X.
- Sutter, Herb (2004). Exceptional C++ Style. Addison-Wesley. ISBN 0-201-76042-8.
- Vandevoorde, David; Nicolai M. Josuttis (2003). C++ Templates: The complete Guide. Addison-Wesley. ISBN 0-201-73484-2.
- Scott Meyers (2005). Effective C++. Third Edition. Addison-Wesley. ISBN 0-321-33487-6
പുറത്തേക്കുള്ള കണ്ണികൾ [തിരുത്തുക]
പരിശീലനക്കുറിപ്പുകൾ en:C++ എന്ന താളിൽ ലഭ്യമാണ്
- Introduction to C++
- C++ Annotations - A thorough and detailed C++ reference
- A paper by Stroustrup showing the timeline of C++ evolution (1979-1991)
- Apache C++ Standard Library Documentation
- Standards Committee Page: JTC1/SC22/WG21 - C++
- C++ FAQ Lite by Marshall Cline
- Boost C++ Libraries
- C++ വിക്കിപാഠഷാല
- Computer World interview with Bjarne Stroustrup
- CrazyEngineers.com interview with Bjarne Stroustrup
- Interactive web-based version of Comeau C++ compiler
- The State of the Language: An Interview with Bjarne Stroustrup (August 15, 2008)