User Input & Output in C++ Hindi

Input & Output In Hindi – User Input & Output in C++ Hindi

C++

User Input & Output in C++ Hindi – C++ Mei Input And Output Ke Liye Streams Ka Istemal Kiya Jata Hai. Wese Har Programming Language Me Input And Output in Hindi Ke Bina Kuch Bhi Nhi Hota Hai | Input Ke liye Keyboard Ka Istemal Hota hai or Output Ke Liye Desktop / Monitor Ki Screen Par Show Hota Hai |

C++ Me Input And Output Ke Liye Kuch Header Files Hai |

Input & Output in Cpp Hindi

Cpp Input & Output Ke Liye C++ Me 3 Header Files Hai |

  1. iostream
  2. iomanip
  3. fstream

iostream :- Standard Stream se data ko read or write karne ke liye is header file ka istemal hota hai | Cpp ke program mei input/output ke liye iostream is header file ko include karna padta hai |

iomanip :- iomanip ye bhi ek input/output library ka hi hissa hai | Jisme Arguments Ke Sath Sath Manipulator Fucntions Hote Hai | Iosmanip Formatted input/Output ke liye istemal kiya jata hai |

fstream :- fstream ka istemal files ke liye hota hai | File ko read or write karna hoto is is header file ko include karna jaruri hota hai |

User Input & Output in C++ Hindi

cout (Console Output) : Standard Output Stream

  • cout output screen par dikhata hai |
  • cout Ye iostream class ka object Hai |
  • cout ke sath insertion operator(<<) ka Istemal Kiya Jata Hai |
  • insertion operator ko ek hi line mei variable ke sath bahut se insertion operators(<<) ka Istemal Kiya Jata Hai |
  • insertion operator ‘output’ ka Istemal Kiya Jata Hai |
  • insertion operator ke sath endl ka Istemal Kiya Jata Hai |

Example :

#include <iostream>
using namespace std;

int main(){

    cout<<"Master Programing"<<endl;

return 0;
}

Output:

Master Programing

cin(Console Input) : Standard Input Stream

  • cin Keyboard se data ko input karta hai |
  • cin ye istream class ka object hai |
  • cin ke sath extraction operator(>>) ka Istemal Kiya Jata Hai |
  • extraction operator ko ek hi line mei variable ke sath bahut se extraction operators(>>) ka Istemal Kiya Jata Hai |

Example:

#include <iostream>
using namespace std;

int main(){

int a, b;

    cout << "Enter Two numbers :"<<endl;
    cin >>a>>b;
    cout <<"Value of a : "<<a<<endl;
    cout <<"Value of b : "<<b<<endl;
return 0;
}

Output :

Enter Two numbers : 9 5
Value of a : 9
Value of b : 5

C++ Input & Output In Hindi

Also Read This Post

Dosto mujhe ummed hai ki aap Input & Output In Cpp 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 |

Leave a Reply

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