C++ Switch Statement with Example | CPP Programming Video Tutorial

C++ Switch Statement with Example | CPP Programming Video Tutorial

LearningLad

10 лет назад

92,609 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@ferus5583
@ferus5583 - 08.05.2022 16:44

Thank you so much, Sir!!! this video has helped me a lot!!!

Ответить
@bilalabdulla7670
@bilalabdulla7670 - 10.01.2022 19:02

please can you tell me how to write a program by using switch for this
50 to 60 pass
60 to 70 medium
70 to 80 good
80 to 90 very good
90 to 100 excelent

Ответить
@umairabibi5484
@umairabibi5484 - 16.06.2021 08:50

i would not understand it by any one but Sir you make it possible. I m only understand it after watching your video thanks for all

Ответить
@faizansaqeeb3390
@faizansaqeeb3390 - 02.03.2021 11:38

Need dsa playlist

Ответить
@teamtamilasfc3128
@teamtamilasfc3128 - 09.01.2021 23:45

Anil❤️😘

Ответить
@Codeshub2024
@Codeshub2024 - 30.06.2020 07:32

Thank you sir 😊😊

Ответить
@soundwave584
@soundwave584 - 25.05.2020 19:52

if case A matches then why very good executed why? if break is not include

Ответить
@johnmarkalidon7020
@johnmarkalidon7020 - 11.02.2020 11:32

Hello . I'm trying to create a program that will ask the user to input the center point of the circle, then the program will identify where in the Cartesian plane the point lies. either is it in 1st quadrant, 2nd quadrant, so on . is it possible using switch command ?

Ответить
@qazqaz6964
@qazqaz6964 - 04.09.2019 04:45

just wondering, but if i complete the series at what level of c++ would I be?
Beginner? Intermediate? or Professional?

Ответить
@muhammadnasrullah7445
@muhammadnasrullah7445 - 21.07.2019 06:00

how to handle if the user give input an integer instead of a character ?

Ответить
@asma5350
@asma5350 - 26.04.2019 20:39

PlZ use zooming 🔎 video...

Ответить
@Phroton
@Phroton - 07.03.2019 11:55

Pretty awesome when using "cin >> input". I already did that before watching this video.

Ответить
@kuldeepkoranga4624
@kuldeepkoranga4624 - 30.10.2018 20:48

Hi,
Can we write a code for calculator using switch statement, if yes then could you please provide code in the below comment section.
Thanks in advance

Ответить
@ritech2877
@ritech2877 - 09.09.2018 12:17

Sir plz plz tell me..how to restore workspace by mistake..i clicked on close tab and now my workspace is not showing...i am not able to code..plss...tell..sir what to do

Ответить
@harshitporwaliitb5268
@harshitporwaliitb5268 - 10.03.2018 13:21

What is the difference between this and if, else functions?

Ответить
@rodwynnejones
@rodwynnejones - 16.02.2018 01:25

Hi.. is there any benefit over using "switch" rather that multiple "if" or "elsif" statements?

Ответить
@laureven
@laureven - 08.02.2018 16:14

Yeff :) ...this is my new hallo :) ...
Regards

Ответить
@waleedahmed84
@waleedahmed84 - 03.02.2018 09:53

what is the difference between if else if and switch statement.

Ответить
@ultimaz1565
@ultimaz1565 - 12.09.2017 15:54

Following your vids till the end dude.. even though u have pronunciation and grammar error sometimes.

Ответить
@pallabroy6414
@pallabroy6414 - 08.09.2017 21:08

what is integral? you mentioned ,the result must be a integral in the parenthesis .

Ответить
@gagan101
@gagan101 - 04.09.2017 23:24

what if break is not there???

Ответить
@islamapologist5756
@islamapologist5756 - 25.08.2017 17:44

you are great I am following you entire tutorial in C++

Ответить
@rationalthinker9612
@rationalthinker9612 - 15.08.2017 20:13

How would you make it re-enter the program if they entered an invalid choice? Is there a way to make the default go back into the program until the person makes a correct choice?

Ответить
@ags4821
@ags4821 - 20.05.2017 21:20

hi sir could you provide c++ notes

Ответить
@ags4821
@ags4821 - 20.05.2017 21:17

sir could provide complete c++ notes

Ответить
@DyuuulyaaanPlays
@DyuuulyaaanPlays - 28.04.2017 05:38

Hello!
Ive been watching ur vids and i learn a lot, thanks for that but i want to clarify the appearance of Case B's cout when executed as break was been removed in Case A block.

How happens that the Case B's cout appears if ur initial value of input is A? for what I understand, if u have the value of input, it will only find and matches with the same value case then the statements of that case block will be executed then break.

please clarify asap thank you!

Ответить
@niranjanwagh5767
@niranjanwagh5767 - 27.04.2017 18:54

how can i use the < or > expression in case ?

Ответить
@pratikdesai2396
@pratikdesai2396 - 03.04.2016 13:19

if we put "<<endl;" in statements under case, we dont need to use break, why would we use it?
What is difference in putting endl or break?? Well i understood what endl does and what break; does but in this case why dont we use endl; and uses break;?

well, we use break for another cases to break the execution further and comeout, but I want to understand from this tutorial perspective. Kindly explain.

Ответить
@ClearNinjaFox
@ClearNinjaFox - 04.01.2016 03:02

is it possible to write switch (HELLO == hello ) and for the cases we would write many possible and logical comebacks/responses for the given switch expression such as case one HI case two HEY THERE case three GOOD DAY and so on but use some sort of function RANDOM to pick any of the given case expressions at random ? then we would follow to BREAK; after the case has been given to the cout<< method "case random expression";

Ответить
@joshuaescarilla2239
@joshuaescarilla2239 - 25.12.2015 20:41

Thank you very much "LearningLad", I had learn very much most of your tutorials than my professors discussions.
Sir I understand this tutorial almost, but I only confused "How to switch a string?", please help me, I stuck on this problem. Please help..

Ответить
@619FanHarut
@619FanHarut - 17.07.2015 01:07

but is it always nevessary for switch (input) to be in same datatype as case ,,because in if -else statement its not required

Ответить
@bekim718
@bekim718 - 07.05.2015 06:26

its F not Yefff lol its ok bro i know its hard cuz ur used to speaking hindi..i just  laughed a lil when i heard it..love ur videos man..good job.

Ответить
@KiranYap
@KiranYap - 22.03.2015 00:19

Can you not use the else-if statements in this example? Like:
if (input = 'A') { cout << "excellent";}
else if (input = 'B') { cout << "very good";}
else if (input = 'C') { cout << "good";}
else {cout <<"not bad";}

Ответить