انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة
الكلية كلية العلوم للبنات
القسم قسم الحاسبات
المرحلة 1
أستاذ المادة ماجد جبار جواد الفنهراوي
27/11/2017 15:20:41
Statements Statements are fragments of the C++ program that are executed in sequence. The body of any function is a sequence of statements. C++ includes the following types of statements: 1) expression statements; 2) compound statements; 3) selection statements; 4) iteration statements; 5) jump statements; 6) declaration statements; 7) try blocks; 8) atomic and synchronized blocks
Expressions and Statements
C++ distinguishes between expressions and statements. Very casually, we could say that every expression becomes a statement if a semicolon is appended. However, we would like to discuss this topic a bit more.
If statements in C++ The ability to control the flow of your program, letting it make decisions on what code to execute, is valuable to the programmer. The if statement allows you to control if a program enters a section of code or not based on whether a given condition is true or false. One of the important functions of the if statement is that it allows the program to select an action based upon the user s input. For example, by using an if statement to check a user entered password, your program can decide whether a user is allowed access to the program.
المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
|