CLASS 2: How To Take Input From Keyboard In C++
A Simple Program Used For Taking Input From The Keyboard/User. A Program Used For Taking Input From The Keyboard/User. I Have Declared Two Variables char And int Type Which Store The Value Entered By The User And Display It On Screen. For Input We Use cin>>variable_name; And For Output We Use cout<<"Output Message "; char a[20]; Is Character Type Variable Which Stores 20 Characters int b; Is Integer Type Variable Which Stores A Number endl Is Used For End Of Line \n Is Used For New Line http://i60.tinypic.com/vo0j1v.jpg Output http://i57.tinypic.com/vy5tl3.jpg |
Re: How To Take Input From Keyboard In C++
Thanks for nice sharing........................
|
Re: How To Take Input From Keyboard In C++
Shukriya ..
|
Re: How To Take Input From Keyboard In C++
Gooood Job
|
Re: How To Take Input From Keyboard In C++
Thanks for sharing morash. I tried it and it worked ;).
|
Re: How To Take Input From Keyboard In C++
Morash ek cheez hum nie yeh kyon use kara
cout << "Your name is "<<a<<endl; yeh cout mei <<a<< kyon use kara hie? |
Re: How To Take Input From Keyboard In C++
Quote:
Phir Os Value Ko Hum Display Karne K Liye Dosre Cout Statement K Saath Call Karte Hai .. Like, Agar Hum Ye Use Na Karte To Phir Wo Second Cout Message Es Tarah Show Hota; The Number You Entered Is: Aur Agy Wo Number Display Nai Hota .. a Ko Remove Kar K Phir Program Ko Run Karo To Pata Lag Jaega Kis Liye Use Hota Hai =p |
All times are GMT +5. The time now is 03:18 AM. |
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.