C Programming Tutorial # 15 - switch statement - Part 2 [HD]

preview_player
Показать описание

In this tutorial you will continue to learn about the switch statement and how it is used. It also gives an example code to explain the switch statement.

This tutorial is part of the following series:
Рекомендации по теме
Комментарии
Автор

I thought learning the c language would be hard, but you make it understandable with your clear explanations. You seem to fit the job as a computer science professor :)

alicianguyen
Автор

Thank you. Dont forget to visit CPlusPlusTutor. com

Learnorama
Автор

Sure. Dont forget to visit CPlusPlusTutor. com

Learnorama
Автор

@92MrRocktheworld Unfortunately not. It sure would be great to be able to do so, but unfortunately switch works on numeric and character data types.

Learnorama
Автор

@Learnorama Actually CPlusPlusTutor . com Sorry new website ;-)

Learnorama
Автор

Can we use strings in switch statement... I mean like u hav used 1 or 2... in the same way can we use eg. color's name or

MrRocktheworld
Автор

are the best one in the world
big hug
^^_^^

mooreeau
Автор

its very very useful...is it possible to run in win7???

benjohn
Автор

I have a problem, with the Dev C++ compiler that is.
After i run the program and enter both num1 and num2, when i have to choose 1, 2 or 3 the console will stop responding and crash as soon as I make my choice.

I am running it on win7, any idea what could be the problem?

PoisonWar
Автор

Or use Code::Blocks. It is very similar but better.

Learnorama
Автор

Maybe run it in Windows XP compatibility ? That's all I can think of.

Learnorama
Автор

what's the use of (int argc, char *argc[])

any idea ?? help .. thank you :)

steffin
Автор

@smartprince20 Thanks for liking the tutorial. Check out my website CPlusPlus . com

Learnorama
Автор

I had same problem i forgot to use "&" before choice variable in scanf();

hltnk