Algorithmique (7/14) - Structure sélective Selon (Structure Cas)

21 Nov 2018 · 3 min
3:12

In this French-language lecture, the instructor introduces the multiple‑choice conditional structure, commonly known as a switch/case or "structure sélective". He begins by showing how a nested IF chain can be used to map the numbers 1‑5 to their word equivalents, but points out that such code becomes cumbersome as the number of cases grows. He then presents the switch‑style construct (referred to as "Structure Selon" or "Structure Sedan") as a clearer, more maintainable alternative. The lecture explains the basic syntax in pseudo‑code, including the selector variable, case labels, the default block (Sinon/Autrement), and the closing keyword (FinSelon). He demonstrates variations such as using the keyword Quand (as in C), replacing Selon with Quand, and substituting Sinon with Autrement. The instructor also notes that the selector can evaluate boolean expressions and that multiple values can be grouped under a single treatment. Throughout, he emphasizes that pseudo‑code is permissive but the logical flow must remain correct, and he encourages learners to master the basic form before exploring language‑specific extensions. The video concludes with a brief recap and invitation to the next lesson.

Chapters

More from Yamossoun

8:56
youtube.com

Compteur synchrone - Logique séquentielle

2w ago
11:58
youtube.com

Compteur asynchrone et diviseur de fréquence - Logique séquentielle

3w ago
11:37
youtube.com

Les registres (parallèle et à décalage) - Logique séquentielle

1mo ago
6:14
youtube.com

Bascule T (Toggle) - Logique séquentielle

1mo ago
12:05
youtube.com

Bascule JK - Logique séquentielle

1mo ago
9:17
youtube.com

Bascule D flip-flop active sur front montant - Logique séquentielle

1mo ago
10:08
youtube.com

Bascule D Latch - Logique séquentielle

1mo ago
8:13
youtube.com

Bascule RS - Logique séquentielle

1mo ago
5:04
youtube.com

Logique séquentielle - Introduction

2mo ago
1:15
youtube.com

Le codeur - Logique combinatoire #codeur #logique #circuit #booleanlogic

2mo ago
1:56
youtube.com

Algorithme de calcule de la racine carrée par dichotomie #dichotomy #squareroot #algorithm

3mo ago
See all content