🗊Презентация Decision structure in C++

Нажмите для полного просмотра!
Decision structure in C++, слайд №1Decision structure in C++, слайд №2Decision structure in C++, слайд №3Decision structure in C++, слайд №4Decision structure in C++, слайд №5Decision structure in C++, слайд №6Decision structure in C++, слайд №7

Вы можете ознакомиться и скачать презентацию на тему Decision structure in C++. Доклад-сообщение содержит 7 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1





Decision structure in C++
Описание слайда:
Decision structure in C++

Слайд 2













Let there are multiple statements in the code. This program provides an ability to the programmer to decide what statements to be executed and what statements should not be executed depending upon the specific condition. This is known as decision making
Описание слайда:
Let there are multiple statements in the code. This program provides an ability to the programmer to decide what statements to be executed and what statements should not be executed depending upon the specific condition. This is known as decision making

Слайд 3





Decision-making is an important concept in any programming language and to accomplish this, C++ uses the following decision making statements:
if statement
if..else statement
switch statement
conditional operator
Описание слайда:
Decision-making is an important concept in any programming language and to accomplish this, C++ uses the following decision making statements: if statement if..else statement switch statement conditional operator

Слайд 4





IF statement
if statement allows us to control a program whether to execute specific statement or not.
If statement is used to complete an operation, if a condition is true
Condition can be true or false
The condition will be checked and if it is true then the statement will be executed.
Описание слайда:
IF statement if statement allows us to control a program whether to execute specific statement or not. If statement is used to complete an operation, if a condition is true Condition can be true or false The condition will be checked and if it is true then the statement will be executed.

Слайд 5





IF…ELSE statement
The if...else executes body of if when the condition is true and executes the body of else if condition is false.
Описание слайда:
IF…ELSE statement The if...else executes body of if when the condition is true and executes the body of else if condition is false.

Слайд 6





SWITCH statement.
Allows selection among multiple sections of code, depending on the value of an integral expression.
A switch statement includes one or more switch sections. Each switch section contains one or more case labels followed by one or more statements.
Описание слайда:
SWITCH statement. Allows selection among multiple sections of code, depending on the value of an integral expression. A switch statement includes one or more switch sections. Each switch section contains one or more case labels followed by one or more statements.

Слайд 7





 Сonditional operator (? :)
The conditional operator (? :) is a ternary operator (it takes three operands).
The first operand is implicitly converted to bool. It is evaluated and all side effects are completed before continuing.
If the first operand evaluates to true (1), the second operand is evaluated.
If the first operand evaluates to false (0), the third operand is evaluated.
The result of the conditional operator is the result of whichever operand is evaluated — the second or the third. Only one of the last two operands is evaluated in a conditional expression.
Описание слайда:
 Сonditional operator (? :) The conditional operator (? :) is a ternary operator (it takes three operands). The first operand is implicitly converted to bool. It is evaluated and all side effects are completed before continuing. If the first operand evaluates to true (1), the second operand is evaluated. If the first operand evaluates to false (0), the third operand is evaluated. The result of the conditional operator is the result of whichever operand is evaluated — the second or the third. Only one of the last two operands is evaluated in a conditional expression.



Похожие презентации
Mypresentation.ru
Загрузить презентацию