Cin in C++ for Receiving User, Console Input | CPP Programming Video Tutorial

  Рет қаралды 207,196

LearningLad

LearningLad

Күн бұрын

Пікірлер: 114
@bhargavagopi4232
@bhargavagopi4232 9 жыл бұрын
I thought that c++ is difficult than c, but by watching your videos, I feel like it's easier. nice work.
@LearningLad
@LearningLad 9 жыл бұрын
+bhargava gopi Thank u and happy to hear that :)
@UnprovenAssumptions
@UnprovenAssumptions 7 жыл бұрын
Wow! I'm blown away at your ability to explain these concepts so simply. I feel like even I can do it now, and that's saying something! Thanks for the tutorial, you earned a like form me.
@LearningLad
@LearningLad 7 жыл бұрын
Thank you. i'm really glad that my tutorials are helping you. Keep Learning :)
@RavinderKaur-hx8qx
@RavinderKaur-hx8qx 5 жыл бұрын
Your tutorials are best
@LearningLad
@LearningLad 5 жыл бұрын
thank you :)
@deepakreddy8053
@deepakreddy8053 10 жыл бұрын
Your videos are really helping me ......in learning c++ ....thanks for helping us by your tutorials...... Very good learning....:):)
@LearningLad
@LearningLad 10 жыл бұрын
deepak reddy i'm glad that my videos are helping you :) thanks for the comment man.
@ektagemnani5334
@ektagemnani5334 9 жыл бұрын
***** sir cn u plz teach html also i love ur videos my confidence z increasing alot ill b facing campus on 25th f dis month cn u plz help me out in web development also?
@LearningLad
@LearningLad 9 жыл бұрын
we have plans to make html5 and css3 video's. But its gonna take some time. So you have to look for other resources. All the Best :)
@ektagemnani5334
@ektagemnani5334 9 жыл бұрын
cn u tell me till wht tym ull b able to make bcoz i have to sit in TCS also by nov or dec...sir plz help me out in html n css i m nt able to get good resource n book for it plzz
@LearningLad
@LearningLad 9 жыл бұрын
i really can't say!!!! we have a lot of requests for c# and python tutorials and also we need to complete our java series. So may be after the completion of them we'll make html tutorials. sorry for the inconvenience.
@shashidharkumart5009
@shashidharkumart5009 8 жыл бұрын
#include using namespace std; int main() { cout
@LearningLad
@LearningLad 8 жыл бұрын
pleasure :)
@abhishekanand7376
@abhishekanand7376 7 жыл бұрын
print "FUCK OFF"
@abhishekanand7376
@abhishekanand7376 7 жыл бұрын
its python by the way
@manjeetkapil1882
@manjeetkapil1882 6 жыл бұрын
i stopped playing pubg less due to this videos because they are very intersting
@Keetmalin
@Keetmalin 10 жыл бұрын
All these videos are really helpful... thanks alot :)
@LearningLad
@LearningLad 10 жыл бұрын
Keet Malin Sugathadasa,i am really glad that my videos helped you :)
@tylorbray
@tylorbray 8 жыл бұрын
Your the best thanks for the tutorials.
@muhammadroshan7315
@muhammadroshan7315 8 жыл бұрын
RIP Anglesh :p
@Journalist.amrit007
@Journalist.amrit007 6 жыл бұрын
I hv learnt so much to see ur tutorial Anil Sir.. Sir I request u to put the videos of solution of some exercises given at the end. e
@LearningLad
@LearningLad 6 жыл бұрын
i have got many requests for this. i will try :)
@upasnasingh2117
@upasnasingh2117 4 жыл бұрын
You are awesome teacher thanks for teaching us in this way
@Noldy__
@Noldy__ 9 жыл бұрын
Understood :). Done for the day.
@thaladaran7513
@thaladaran7513 7 жыл бұрын
tnqqqq so much sirrrrrrrr its very helpful.........
@TarunKumar-ll8qf
@TarunKumar-ll8qf 6 жыл бұрын
Thanks for your tutorials
@LearningLad
@LearningLad 6 жыл бұрын
my pleasure :)
@TarunKumar-ll8qf
@TarunKumar-ll8qf 6 жыл бұрын
Awesome anil sir
@LearningLad
@LearningLad 6 жыл бұрын
thank you :)
@shiwangi__7087
@shiwangi__7087 4 жыл бұрын
Thank you
@LearningLad
@LearningLad 4 жыл бұрын
You're welcome
@hitmanOnBillBoard
@hitmanOnBillBoard 7 жыл бұрын
I typed out everything exactly like I saw in the tutorial, but cin does not seem to work. If I pass in a char[] variable, I can get it to work somewhat but still not fully. When I run it and try to enter the value, I can't get it to echo the keyboard. I press enter and I can see the cursor go down a line but it still dose nothing. If I press a ^z and enter, it goes to the cout statement, but then the integer is never assigned.
@LearningLad
@LearningLad 7 жыл бұрын
visit my website, get the source code and try with it. you might have made a small mistake in your code
@rishikvarma3475
@rishikvarma3475 6 жыл бұрын
if we need to take two inputs via cin where the two integer inputs are separated by spacebar , then can we write like this: cin>>a>>" ">>b; ????
@LearningLad
@LearningLad 6 жыл бұрын
use cin >> a >> b;
@rishikvarma3475
@rishikvarma3475 6 жыл бұрын
@@LearningLad thanks
@kleozane2781
@kleozane2781 6 жыл бұрын
Use or \t. If i remember correctly, they do not "interact" with your code, only add spaces and end lines
@gadgetsfizztech3638
@gadgetsfizztech3638 6 жыл бұрын
Okay i knw its stupid but still wanted to knw .... After completing the whole c++ from ur channel/these videos ,how much capable the viewer wud be like is it tht great ki job level ka h/or to make some sort of programme softwares and something ki just for clg level for beginners who just wanna know wht c++ is and hw is it used?
@mr.actapus4069
@mr.actapus4069 5 жыл бұрын
hi
@aryavardhansingh2162
@aryavardhansingh2162 5 жыл бұрын
sir can u tell me that how can space and enter both are same to read the input
@michaelthompson741
@michaelthompson741 10 жыл бұрын
thanks for the video. i am using the Microsoft visual studio c++.. i have been watching all of your videos and trying it all out. but in this video, when i debugged, it showed the output screen but disappeared after my input age value. usually, i use the cin.get(); at the end of every program since i am using the visual studio 2008 version. what am i doing wrong?
@LearningLad
@LearningLad 10 жыл бұрын
Michael Thompson when you enter the value for age and hit the enter button, It leaves a trailing newline token in the input stream and cin.get() is consuming that value. try using cin.ignore(); cin.get(); if you still get errors pls let me know along with the source code:)
@ramchinthakayala2092
@ramchinthakayala2092 4 жыл бұрын
Bro, are we using cout and cin while building application?
@Nethrik
@Nethrik 8 жыл бұрын
Thank you.
@goodthings515
@goodthings515 8 жыл бұрын
sir is there is and method of type casting through which we can change our float or integer value to some character??
@goodthings515
@goodthings515 8 жыл бұрын
And sir I m the beginner of c++ and sir I want to tell u thank you very much for this tutorial as it is short and easy to understand c++ and also one of the best tutorial class for me
@RahulSharma-yp1lx
@RahulSharma-yp1lx 4 жыл бұрын
Sir , why (average is ) there after the stream insertion operator ?
@veggieboy1
@veggieboy1 2 жыл бұрын
Because cin >> age returns a reference to cin, so it's like doing cin >> avg. Think of it like this: (cin >> age) = cin, so (cin >> age) >> avg; is the same as cin >> avg; (but obviously cin after having read age is different than before).
@ahappyperson6530
@ahappyperson6530 7 жыл бұрын
sir, will you upload a video of programming a software with c++ please 🙏🙏🙏
@LearningLad
@LearningLad 7 жыл бұрын
i'll try but may take some as i'm currently busy with some projects :)
@LearningLad
@LearningLad 7 жыл бұрын
*take some time
@rosewhitely
@rosewhitely 7 жыл бұрын
hello sir can we use cin for Boolean functions also?
@LearningLad
@LearningLad 7 жыл бұрын
yes you can. in this series i have a video which explains how to read Boolean values as true and false using cin. (i just dont know the video number pls search in my channel.)
@rosewhitely
@rosewhitely 7 жыл бұрын
Thanks sir I will try it again
@rocky20717
@rocky20717 7 жыл бұрын
06 | Creating and Using C++ Variables | CPP Programming Video Tutorial bool isit = true; In true , Value of 1 will be stored in this is it variable & if you use false here a value ZERO will be stored
@estservicesltd2841
@estservicesltd2841 5 жыл бұрын
this is what am trying on c++, but after the receiver inputs his or her yes,the rest of the questions jam up, what do i do? #include using namespace std; int main () { // Question.To qualify as a doctor,one has to fulfill the following conditions; // 1. Age must be above 25 // 2. must posses a fist class // 3. program studied must have science and // 4. must have completed national service. { int age; int yes; int science; int no; cout > age; cout
@aravindchandrasekaran5324
@aravindchandrasekaran5324 6 жыл бұрын
what compiler r u using
@LearningLad
@LearningLad 6 жыл бұрын
gcc
@najehmchirgui7968
@najehmchirgui7968 8 жыл бұрын
Thanks you so much
@Journalist.amrit007
@Journalist.amrit007 6 жыл бұрын
I understand all the theories but how can i execute the program or solve the question ? plz suggest me..
@LearningLad
@LearningLad 6 жыл бұрын
i can understand. All you have to do is practice what you learn. have a plan about solving the problem. write code. try to do different things in your program. it will be easy. you will be fine. this happens with most people
@mohosinmohosin-es8hf
@mohosinmohosin-es8hf 8 жыл бұрын
dear sir i want to know .if i lean your 143 vidio.do you think it is just for me to learn c++.
@nehalgupta5316
@nehalgupta5316 4 жыл бұрын
Is cin is same as scanf in c??
@rajasangeetha8092
@rajasangeetha8092 7 жыл бұрын
hi sir, we can't use endl to cin?
@LearningLad
@LearningLad 6 жыл бұрын
endl is used to take the output to next line. So it is used with cout
@SOLOTECH-xx4yj
@SOLOTECH-xx4yj 4 ай бұрын
this tutorial is 6yrs ago, is it still good to continue?. please i need response!
@Rahul-xf4ez
@Rahul-xf4ez 9 жыл бұрын
this was the code I used #include ; using namespace std; int main(){ int age; float avg; cout > avg; cout
@iChikyIntros
@iChikyIntros 9 жыл бұрын
Dont use semicolon in #iclude
@akhileshlsingh8599
@akhileshlsingh8599 5 жыл бұрын
I am is real new to coder can u please tell be a one line diff in cout and cin
@lovelife7873
@lovelife7873 4 жыл бұрын
so nyc
@LearningLad
@LearningLad 4 жыл бұрын
Thanks
@aua1986
@aua1986 9 жыл бұрын
hi, When I run it, the average doesn't work, it gives me long decimal numbers and I have written everything down like you have it on the video. why could this be?
@brucewayne-qq9bw
@brucewayne-qq9bw 8 жыл бұрын
good job
@LearningLad
@LearningLad 8 жыл бұрын
Thank you :)
@truefact7863
@truefact7863 8 жыл бұрын
bro i have question about what is the main difference between c++ programming video tutorial and oop c++ programming
@princegupta6779
@princegupta6779 8 жыл бұрын
Basically in C++ programming tutorial we learns the fundamentals of c++, inbuilt data types their methods etc. In object oriented programming we create our own datatype to create its instances and work on it. It really makes the programme beautiful
@aryanpanchal9248
@aryanpanchal9248 4 жыл бұрын
5:40 why the execution time is soo high?
@aswaghoshanilkumar8164
@aswaghoshanilkumar8164 6 жыл бұрын
Thx sir
@LearningLad
@LearningLad 6 жыл бұрын
my pleasure :)
@usamasarfraz2517
@usamasarfraz2517 7 жыл бұрын
Good job
@LearningLad
@LearningLad 7 жыл бұрын
Thank you :)
@himanshushukla3583
@himanshushukla3583 8 жыл бұрын
why we have used space between age and avg in video tutorial 8 using space bar may use some garbage value why it is not showing garbage value
@JATINKUMAR-hx5mb
@JATINKUMAR-hx5mb 6 жыл бұрын
Best book kon si hai sdir c++ ki
@Reactionsgirls
@Reactionsgirls 4 жыл бұрын
Can you plss tell me the full form of cin and cout please ?
@entertainmentalways2205
@entertainmentalways2205 6 жыл бұрын
Sir g cin is not working.If a run a program to convert Fahrenheit to Celcius and After that when I enter any value in Fahrenheit than it gives Answer as 0 Celcius everytime.
@biswajeetnayak3795
@biswajeetnayak3795 6 жыл бұрын
Hey why namespace is used it can be done without that I think
@omkarmohanty2356
@omkarmohanty2356 7 жыл бұрын
in dev c++ rhis isnt working i input some value in command prompt and when i press enter the screen of command prompt vanishes pls tell me what to do
@LearningLad
@LearningLad 7 жыл бұрын
just add a pause to your program include cstdlib header file and then write the statement system("PAUSE"); just before the return 0 statement. you can watch the Hello world program video ( i think video number 4 )
@Nothing-gn9km
@Nothing-gn9km 5 жыл бұрын
I'm using cin, but error msg is generated. It says, no match for 'operator>>'.. Plz help me.
@LearningLad
@LearningLad 5 жыл бұрын
pls post your code
@Nothing-gn9km
@Nothing-gn9km 5 жыл бұрын
@@LearningLad thanks for the support, sir. But I cleared my doubt myself 😅. I was using endl with cin, that's why it was showing error. Now I'm good to go. BTW, kudos to you for such quality content.
@deepalikadam2154
@deepalikadam2154 7 жыл бұрын
Good
@LearningLad
@LearningLad 7 жыл бұрын
Thank you :)
@Rahul-xf4ez
@Rahul-xf4ez 9 жыл бұрын
I followed everything you said but I get a small problem.I input my age and average and it comes right but there is no spacing between the text and number.It comes like this "you have entered15".No spacing between entered and 15.where did I go wrong?
@ahusyn
@ahusyn 9 жыл бұрын
+Rahul R you need to add a space before the end quotation,, e.g "this is okay " < see there is a space
@lubabaafzal6200
@lubabaafzal6200 7 жыл бұрын
Bro , I would like to share a problem...I dont know what timus 1001 prob actually means ..i have only solved timus 1000
@subbuvanapalli959
@subbuvanapalli959 7 жыл бұрын
could u please fix the error in the below the program
@mahitoshray6691
@mahitoshray6691 7 жыл бұрын
can you tell me the name of this c++ application
@JagatK_
@JagatK_ 6 жыл бұрын
In the given code I entered my age as 0020 but got the output as 20. No doubt the answer is correct but I want to know, "how does it happen !! " .
@ramanthalor2020
@ramanthalor2020 5 жыл бұрын
sir please tell me boo of c++
@ramanthalor2020
@ramanthalor2020 5 жыл бұрын
book
@subbuvanapalli959
@subbuvanapalli959 7 жыл бұрын
#include using namespace std char name1, name2, name3, name4, name5, name6; int main() { char name1, name2, name3, name4, name5, name6; cout name1 >> endl; cin>> name2>> endl; cin>> name3>> endl; cin>> name4>> endl; cin>> name5>> endl; cin>> name6; cout
@aloneemon9596
@aloneemon9596 7 жыл бұрын
My end fuction is not working what can i do????
@kotalakshmiprasad8043
@kotalakshmiprasad8043 6 жыл бұрын
Alone EmoN #include Use this. Header file. Broo
@ishantandon9167
@ishantandon9167 6 жыл бұрын
You lose about 20k views after every video of the series, these are the people who are not dedicated. Amazing videos though XD
@MudassirKhan-ui2rj
@MudassirKhan-ui2rj 5 жыл бұрын
hello, i need ur help pls. im really new to coding (just 1 week) i created a program today seeing ur tutorial. im mentioning it below. #include using namespace std; int main() { int age; int realage; cout age; cout
@m-agoumi
@m-agoumi 6 жыл бұрын
what about receiving a string value like what's your name?? so this video is kinda useless
@kahaniya_in_hindi
@kahaniya_in_hindi 7 жыл бұрын
Ur video is not clear
@bilalshah9485
@bilalshah9485 4 жыл бұрын
Thank you
@LearningLad
@LearningLad 4 жыл бұрын
You're welcome
@dhruvrupramka8814
@dhruvrupramka8814 6 жыл бұрын
it says 0 for me in percentage. What to do???
C++ Comments | CPP Programming Video Tutorials
8:24
LearningLad
Рет қаралды 151 М.
C++ Console Output with Cout | CPP Programming Tutorial
5:20
LearningLad
Рет қаралды 216 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
C++ Break Statement with Example | CPP Programming Video Tutorial
6:09
Creating and Using C++ Variables | CPP Programming Video Tutorial
8:19
Japanese||a nice exponent || olympiad mathematics||
7:37
Sahaj Maths Study
Рет қаралды 216
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 249 М.
How usable is Windows XP in 2025?
29:00
WinJanus
Рет қаралды 11
DeepSeek: The Free AI "Side Project" That Embarrassed ChatGPT
8:07
The Coding Sloth
Рет қаралды 27 М.
C++ Video Tutorial | CPP IF ELSE  | Conditional Statement
8:26
LearningLad
Рет қаралды 155 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН