Hello everyone, kaise hain app log, welcome to my channel Rihan Ali001. Agar aap is channel per naye hain to like share and subscribe kare and press the bell icon jisse new videoes ki notifications apko milti rahe. Chaliye suru krte hain...
Is video me hum cover karenge Introduction to C++. Sabse pehle C++ ke inventor jinka naam hai Bjarne Stroustrupm,
Jinhone C++ language 1980s me Bell Laboratories me develope ki. C++ ek general-purpose, case-sensitive, free-form programming language hai jisse multiple fields me use kiya ja sakta hai.
C++ language ko C language ke enhancement ke tor per develope kiya gaya tha. Inventor ne C language me object-oriented concept and other capabilies include krke iske new version ko C++ name diya. C++ ek compiled language hai. Iska matlab compiler C++ ka source code compile krke machine code me convert kr dega.
source code ==> compile ==> machine code
Source code ka example:-
Isse hum aage detail me dekhenge. Iska extension ".cpp" hota hai. Jesse songs ke liye ".mp3" and videoes ke liye ".mp4" extension hota hai vaise hi C++ files ke liye ".cpp" extension hota hai.
C++ ek middle-level language hai jo isse low-level (drivers, kernels) or higher-level applications (games, GUI, desktop apps etc.) dono programming krne ka advantage deta hai. C or C++ dono languages ka syntax or code structure same hai. Jinhe C language aati hai wo C++ easily learn kr sakte hain.
Features & key-points programming language ke baare me:-
- Simple:- C++ ek simple language jisme programs logical units and parts me tod sakte hain, iske paas rich library support or variety of data-types hain.
- Machine Independent but Platform Dependent:- C++ ka executable program platform-dependent hai jesse Linux operating system me compiled program Windows operating system me work nhi karega. But ye machine independent hai.
- Mid-level language:- C++ ek mid-level language hai jisse hum systems-programming (drivers, kernels, networking etc.) or large-scale user applications (Media Players, Photoshop, Game Engines etc.) dono bana sakte hain.
- Speed of execution:- C++ programs ki execution speed high hai in comparison other languages like java, python etc.
- Pointer and direct Memory-Access:- C++ pointer support provide krta hai jo users ko directly storage address manipulate krne deta hai. Pointer low-level programming krne me help krta hai (For example jab hume variables ke storage per control krne ki need hoti hai).
- Object-Oriented:- C++ language ka strongest points jo isse C se different banata hai. Object-Oriented support C++ ko maintainable and extensible programs banane me help krta. For example Large-scale applications easily built ho sakte hain jabki Procedural code application ka size increase hone ke sath code maintain krna difficult ho jata hai.
Applications of C++:-
- Operating Systems & Systems Programming. For example Linux-based OS (Ubuntu etc.)
- Browsers (Chrome & Firefox)
- Graphics & Game engines (Photoshop, Blender, Unreal-Engine)
- Database Engines (MySQL, MongoDB, Redis etc.)
- Cloud/Distributed Systems
Some interesting facts about C++:-
- C++ ka name C me huye changes ke evolutionary nature ko batata hai. “++” C me increment operator hai.
- C++ sabhi tarah ke technical and commercial software develop krne ke liye effective languages me se ek hai.
- C++ ko OOP features Simula67 Programming language se mila hai.
- C++ program ko run krne ke liye minimum ek function required hai. Matlab Kam se kam ek main() function ho must hai.