الأربعاء، 5 يونيو 2013

Lesson 5: switch case in C and C++

Lesson 5: switch case in C and C++

Lesson 5: switch case in C and C++

Switch case statements are a substitute for long if statements that compare a variable to several "integral" values ("integral" values are simply values that can be expressed as an integer, such as the value of a char). The basic format for using switch case is outlined below. The value of the variable given into switch is compared to the value following each of the cases, and when one value matches the value of the variable, the computer continues executing the program from that point.



WWW.MEDIU.EDY.MY
WWW.VB.MEDIU.EDU.MY




منقول
الملفات المرفقة الملفات المرفقة
مع تحيات جامعة المدينة العالمية

0 التعليقات:

إرسال تعليق