C++ All Programs of C++ Languages |
Advertisement |
|
Thread Tools | Display Modes |
(#1)
|
|
||||
CLASS 2: How To Take Input From Keyboard In C++ -
>>
Show Printable Version
Email this Page
04-06-2014, 12:00 PM
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 Output
➳ bE driveN wiTh puRpOse, Be r313n71355 in your alιgnмenт; with excellence. pAy n0 mInd to the ∂ιsιмραssισηε∂ เ๓ק๏tєภt ђคtєгร ♬ ☣ .. нoolιgan ☠
|
Sponsored Links |
|
(#2)
|
|
|||
Re: How To Take Input From Keyboard In C++ -
>>
Show Printable Version
Email this Page
04-06-2014, 12:18 PM
|
(#3)
|
|
||||
Re: How To Take Input From Keyboard In C++ -
>>
Show Printable Version
Email this Page
04-06-2014, 07:33 PM
|
(#4)
|
|
||||
Re: How To Take Input From Keyboard In C++ -
>>
Show Printable Version
Email this Page
04-06-2014, 09:04 PM
|
(#5)
|
|
||||
Re: How To Take Input From Keyboard In C++ -
>>
Show Printable Version
Email this Page
04-06-2014, 10:35 PM
Thanks for sharing morash. I tried it and it worked .
ALLAH FARMATA HAI : AEY BANDEY JO HUA WO ACHA HUA . JO HORAHA HAI ACHA HO RAHA HAI. JO HOGA WO BHI ACHA HOGA. TERA KIYA GAIYA JO TU ROTA HAI TU KIA LAYA JO TU NE KHO DIYA. JO LIYA YAHIN (DUNYA) SEI LIYA JO DIYA YAHIN (DUNYA) PE DIYA JO AAJ TERA HAI PEHLAY KISI AUR KA THA AUR KAL KISI AUR KA HOGA. TABDEELI KAINAAT KA MAMOOL HAI BAS TU WO JAMA KAR JO TU SATH LEI KAR JANEY WALA HAI YANI NAIK AMAAL. |
(#6)
|
|
||||
Re: How To Take Input From Keyboard In C++ -
>>
Show Printable Version
Email this Page
04-06-2014, 10:48 PM
Morash ek cheez hum nie yeh kyon use kara cout << "Your name is "<<a<<endl; yeh cout mei <<a<< kyon use kara hie?
ALLAH FARMATA HAI : AEY BANDEY JO HUA WO ACHA HUA . JO HORAHA HAI ACHA HO RAHA HAI. JO HOGA WO BHI ACHA HOGA. TERA KIYA GAIYA JO TU ROTA HAI TU KIA LAYA JO TU NE KHO DIYA. JO LIYA YAHIN (DUNYA) SEI LIYA JO DIYA YAHIN (DUNYA) PE DIYA JO AAJ TERA HAI PEHLAY KISI AUR KA THA AUR KAL KISI AUR KA HOGA. TABDEELI KAINAAT KA MAMOOL HAI BAS TU WO JAMA KAR JO TU SATH LEI KAR JANEY WALA HAI YANI NAIK AMAAL. |
(#7)
|
|
||||
Re: How To Take Input From Keyboard In C++ -
>>
Show Printable Version
Email this Page
04-07-2014, 02:02 AM
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
➳ bE driveN wiTh puRpOse, Be r313n71355 in your alιgnмenт; with excellence. pAy n0 mInd to the ∂ιsιмραssισηε∂ เ๓ק๏tєภt ђคtєгร ♬ ☣ .. нoolιgan ☠
|
Bookmarks |
Tags |
input, keyboard |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Job in Public Sector Org Job, Data Input Operator, Assistant, Junior Clerk, driver | AYAZ | Jobs & Career | 3 | 07-30-2013 07:03 PM |
~ChOcOLate KeyBoard~ | ~Pr!nCe$s UrOoJ~ | Pics And Images | 13 | 03-25-2013 05:35 PM |
Use of old input pc device | AYAZ | Pics And Images | 9 | 12-02-2011 09:31 PM |
All KeyBoard Shortcuts | (¯*♥¤»ƙɧՄՏɧՅԾԾ«¤♥*¯) | Computer and Information Technology | 13 | 04-20-2011 06:21 PM |
100 keyboard shortcut | DI@ | Computer and Information Technology | 7 | 01-28-2011 11:34 AM |