C++ Program

Dear Students, aaj ke is Lecture main hum C++ program ke bare main padege. Yani ke C++ program kaise banate hai.  C++ program ko kaise run karate hai. Or sath me he C++ program ke declaration ke bare main bhi padege. C++ ke first program se related ye sare topic ham C++ program ke lecture me cover karege.

Lectures Covering Topics

  • Introduction To C++ Program In Hindi
  • Example Of C++ Program In Hindi
  • Description Of C++ Program In Hindi

Students me aapko yhan par sare programs ke bare me nahi bta rha hun. Ye program sirf aapka eak demo program hai. Is program se aapko yah idea laga jayega ki C++ program banate kaise hai. Kaise C++ mian Input or Output lete hai.

Introduction To C++ Program In Hindi

C++ program ki abcd start karne se pahle aapko yah seekhna hoga kaise C++ program ke code likhte hai. Kaise C++ program main hum user se input or user ko output dete hai. To aap C++ program ko likhne ke liye turbo, turbo++ ya fir kisi bhi c compiler ki eak ide ka use kar sakte hai.

Mene aapko starting ke lecture me bataya tha ki main hamesha Code Block ide ka use karta hau. To main aapko yah bhi code block ide par he coding karke bataunga. Or agar aapne abhi tak code bock ko install nahi kiya hai to neeche diye hue hamre link par click karke pad sakte hai.

Kaise Code Block Ko Install Karte Hai

Agar aapko apna C or C++ program ko run karna aata hai to aap is lecture ko continue kar sakte hai. Otherwise aap hamare lecture how to run C & C++ program ko padkar seekh sakte hai.

How To Run C & C++ Program In Hindi

Example Of C++ Program In Hindi

Students me aapko first example main sirf kuch header files or screen par message print karana bata rha hu. iske liye aap neech likhe hue mere code ko apne text editor main likh le.

  • Iske bad aap apne program ko .cpp extension se save karge jaise ki mene firstexample.cpp ke naam se kiya hua hai.

cpp program 1

  • Ab aap pane program ko run karage to aapke samne kuch is tarah ki eak window open hogi jaise ki neeche image me dikhayi de rahi hai.

cpp program 2

  • Agar aapne bilkul same mere jaisa code or message likha hoga. To fir aapko output kuch is tarah ko hoga. Jaisa ki neehce arrow me dikha ja rha hai.

cpp program 3

Description Of C++ Program In Hindi

Upar C++ program main humne jo kuch bhi likha hai. Ab uske bare main samjhna bahut jaroori hai ki aakhir hamne yah kyon likha hai. To chaliye neeche padte hai description of c++ program.

#include<iostream.h>

Yah eak input outpul library function hai. Ise hum header file bhi kahte hia. Jo ki hame input or output read karne ke liye cin or cout ke facility provide karta hai.

#include<conio.h>

Yah bhi eak header file hai. jo ki eak console input output library function hai. getch function ko conio.h header file me define kiya gya hai.

Void main()

Void main() eak main() function hai joki sabhi programs ke liye eak entry point hai. void keyword hame yah bata hai ki yhan par use kiya gya function hume koi bhi value return nahi karega.

Cout<<

Cout<< eak function hai joki console par output ya fir kisi message ko print karane ke liye use kiya jata hai. jaisa ki mene yah par welcome to hindi me tutorial.com message print karaya hai.

Getch()

Getch() eak function hai joki hamari display ko block karke kisi bhi eak button ko press karne ke liye poochta hai.

Note:- Code block main getch function use karne koi jaroori nahi hota hai. Mene yah function unke liye likha hai jo ki turbo ka compiler use karte hai.

Related Lecture

Dear Students, main aasha karta hun ki aapko C++ program Ka Lecture padh kar samjh me aa gaya hoga. Ki kaise C++ program ko run karate hai. Yadi aapko (C++ program) ke Lecture se related koi bhi problem hai to aap hume comment karke puch skte hai.

Share This Post On

About Author

Thakur Aman Singh

Hey, I am Aman Singh Tomar from Taj City Agra. Through This Blog I want to share my Knowledge with all of you. Read More >>

Leave a Reply

Your email address will not be published. Required fields are marked *