[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
C++ Tutorial – 21 – Switch Statement
by
Tags:
Comments
25 responses to “C++ Tutorial – 21 – Switch Statement”
-
Check out this link for more information about switch: https://www.okprogrammerblog.com/single-post/2017/12/21/Be-OK-with-C-language-switch-statement
-
thank u sooooo muchhhhh!!!!
-
so i can only use int,but not double,float ?
-
what is the difference between int main and void main?
-
I happen to have lost a leg in an accident and I would like to tell you that I am very offended that you would suggest that those without 2 legs are not human. I have you know that I am not a pirate and I am outraged at your insensitive microaggressions, I feel an apology is very much due or else I might just have to report this video
-
1. Write a C++ program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and Computer. Calculate the average and grade according to following: (10 marks)
Percentage >= 90% : Grade A
Percentage >= 80% : Grade B
Percentage >= 70% : Grade C
Percentage >= 60% : Grade D
Percentage >= 40% : Grade E
Percentage < 40% : Grade F
a. Using if … else
b. Using switch
someone help me out -
so simple thank you !
-
what IDE are you using?
-
Just wanted to say thanks man, I've been falling behind in my class and this really helped me out.
-
Any idea of case that required this switch case functions instead of if function? because i cant see a good case example where this function would be more effective to use.
-
uum… pirates are humans. so you are human is a general case for both 1 and 2 legs.. you should have said "you are not a pirate" or you are an ordinary human" or something like that
But the video was amazing thanks for explaining! 🙂
-
Can you use || or && in the case?
-
instead of I don't know who u r..I have written you r an alien…will the program run…..
-
as an amputee, case 1 got me hype
-
Thanks for letting me know about the break statement. I had a switch statement in which all cases had output, so as you could imagine, I got a lot of spam. 😀
-
how would you use if theres an greater then condition?
-
Wow, pirates aren't humans? Monstrous.
-
can I execute switch case inside if function
-
how to make a calculator with switch statment
-
But how can i do this with people names like case bucky or case mark or sth else
-
A good case of switch. thanks. 8~7 .
-
This is so much easier than the if/else statements omg. I should've learned this weeks ago LOL.
-
it is possible that in the case statement the if else statement are included?
-
Great tutorial!
I have a question regarding the default part. If you type in a number that is not "1" or "2", it will say that it won't know what you are.
However, what if you don't type in a number at all? What if you typed in a letter? Is there any way you can make sure the program will validate your input and make sure it is only a number? Thank you!
Leave a Reply