C++ in Hindi – Basic C++ Program in Hindi

Basic C++ Program in hindiC++ Programming Ko Learn Karne Ke liye Ham Starting me Simple C++ program Banane Wale hai. Aaiye C++ Language Ke Kuch Example Dekhte Hai.

Basic C++ Program in hindi

C++ programming ke kuch ham example dekh kar and uske kuch rules dekh kar ham aaj c++ basic program ko samanj te hai and little little program banate hai |

  • Basic C++ Program C++ in Hindi 
  • Simple C++ Program C++ in Hindi 
  • Hello World C++ in Hindi 

First Program Banane ke liye hame kuch topic ko pahle understand karna padega nhi to hme kuch samanj nhi aayega. Programming Language me basic understand karna bahut important hai |

#include<iostream>

#include<iostream> ko ham c++ programming me isliye use karte hai taki harama input and output mil ske . iostream ka matlab hota hai Standard Input Output stream|

Basic C++ Program in Hindi

Iostream library me two function sabse jyada use hote hai |

  • cout // use print karne ke liye
  • cin // use input lene ke liye

Simple C++ program

Is Header File ko ham c or c++ me dono me istemal kar sakte hai |

#include<conio.h>

#include<conio.h> ko ham isliye istemal karte hai taki ham display ko clear & hold kar sake. ye c++ programming me jyada hota hai. Conio ka matlab hota hai Console input & output |

Conio library me two function sabse jyada use hote hai |

  • clearscr(); // use screen clear karne ke liye
  • getch(); // use screen hold karne ke liye

C++ Programming in hindi

Ab Ham C++ programming ke kuch example dekhte hai wo bhi bilkul basic program |

Hello World Program in C++

Example 1:

#include<iostream>

using namespace std; 

int main() 
{ 
	 cout <<"Hello World"; 
         return 0; 
} 

Output :

 Hello World

Simple C++ program in Hindi

Ab Ham Ek Aesa program banate hai ki pahle user se input le or fir jo input liya hai use print karte hai |

Example 2:

#include <iostream>

 using namespace std;

int main()
{
    char name[10];
    cout <<"Enter Your Name :";
    cin >> name;
    cout <<"Your Name is "<<name;
    return 0;
}

Output :

Enter Your Name : Danish Ali
Your Name Is Danish Ali

Basic C++ Language Program in hindi

Aap dekh sakte hai hamne two program banaye hai . Fisrt program hamne keval hello world print karaya hai & second me hamne user se input leke uska name print karaya hai |

Dosto mujhe ummed hai ki aap Basic C++ Program in Hindi ko acchi tarah se samanj gye honge agar aap ko ye post acchi lage to mere is website ko jarur follow kre or ha agar aap video bhi dekhna chahte hai to aap mere channel ko bhi subscribe kar sakte hai. channel ka link aapko home page par mil jayega |

Danish Ali

I Am a Cyber Security Student & I have Skills C, C++ ,Python, HTML,CSS, Computer & Advance Hacking & Blogger & YouTuber.

Leave a Reply

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

Show Buttons
Hide Buttons