आज हम अपनी इस पोस्ट में जानेंगे कि, C++ लैंग्वेज का इतिहास क्या है?, इसके फीचर्स क्या है, और C++ इतनी महत्वपूर्ण क्यों है?
History of C++
- C++ एक high-level programming language है जो 1983 में Bjarne Stroustrup द्वारा विकसित की गई थी। C++ नाम से प्रसिद्ध होने से पहले इसे "C with Classes" के नाम से जाना जाता था।
- C++ ने संख्या की स्वरूप से काम करने वाली पहली भाषा C का उपयोग करते हुए उसमें ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग की सुविधा जोड़ दी थी।
- C++ दुनिया भर में अनेक उपयोगों के लिए इस्तेमाल किया जाता है, जैसे विज्ञान, आर्टिफिशियल इंटेलिजेंस, वेब डेवलपमेंट, और वीडियो गेम डेवलपमेंट आदि।
- C++ का इतिहास 1979 में Bjarne Stroustrup द्वारा Bell Labs में की गई एक रिसर्च पर शुरू होता है।
- Stroustrup उस समय C भाषा का उपयोग कर रहे थे और उन्हें लगता था कि C की कुछ सीमाओं के कारण वे उनकी ज़रूरतों को पूरा नहीं कर सकती हैं। इसलिए, उन्होंने C में ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग को जोड़ने का विचार बनाया।
- C++ को सिस्टम प्रोग्रामिंग और एम्बेडेड, संसाधन-बाधित सॉफ़्टवेयर और बड़ी प्रणालियों को ध्यान में रखते हुए डिजाइन किया गया था, इसके डिजाइन हाइलाइट्स के रूप में प्रदर्शन, दक्षता और उपयोग के लचीलेपन के साथ।
- C++ को कई अन्य संदर्भों में भी उपयोगी पाया गया है, जिसमें प्रमुख ताकतें सॉफ्टवेयर इंफ्रास्ट्रक्चर और संसाधन-विवश अनुप्रयोग हैं, जिसमें डेस्कटॉप एप्लिकेशन, वीडियो गेम, सर्वर (जैसे ई-कॉमर्स, वेब खोज, या डेटाबेस), और प्रदर्शन शामिल हैं- महत्वपूर्ण अनुप्रयोग (जैसे टेलीफोन स्विच या अंतरिक्ष जांच)।
- यदि आप C के बारे में और अधिक जानना चाहते हैं C कि इसकी विशेषता क्या है या ये जानना चाहते हैं की हमे कौन सी प्रोग्रामिंग भाषा सीखनी चाहिए? तो नीचे दिए गए लिंक पर क्लिक करें।
Read more:
Features of C++
C++ एक powerful और versatile programming language है जो C programming language की extension है। C++ ने कई नए features जोड़े जो की C programming language में उपलब्ध नहीं थे। इस article में, हम C++ की features के बारे में बात करेंगे।
Object-Oriented Programming (OOP)
C++ का मुख्य फीचर object-oriented programming है। OOP एक प्रोग्रामिंग परदिग्मा है जो की डाटा और उसके साथ काम करने वाले functions को संरचित करता है। C++ के लिए OOP को समझना बेहद ज़रूरी है।
Templates
C++ में templates का उपयोग करके, आप generic programming कर सकते हैं। आप templates का उपयोग करके functions और classes तैयार कर सकते हैं जो की अलग-अलग data types के साथ काम कर सकते हैं। इससे, आप अपने code को reusability के साथ maintainability और flexibility भी प्रदान कर सकते हैं।
Inheritance
C++ में Inheritance का उपयोग करके आप एक class को दूसरे class से derive कर सकते हैं। यह उनके साथ संबंधित फ़ीचर्स को भी अनुवाद करता है। Inheritance का उपयोग आपको कोड को संभालने में बड़ी मदद करता है और कोड के रिपिटिशन से बचाता है।
Polymorphism
Polymorphism एक object-oriented programming का महत्वपूर्ण फीचर है। C++ में, आप दो types के Polymorphism का उपयोग कर सकते हैं - runtime Polymorphism और compile-time Polymorphism।
C++ Basic Program
#include <iostream>
using namespace std;
int main() {
cout << "Hello C++ Programmers";
return 0;
}
Output:-
Hello C++ Programmers