Forked from
Info 111 Programmation Impérative / 2024-2025 / Semaine4
1 commit behind the upstream repository.
-
Nicolas M. Thiéry authoredNicolas M. Thiéry authored
cours.md 21.39 KiB
jupytext:
text_representation:
extension: .md
format_name: myst
format_version: 0.13
kernelspec:
display_name: C++17
language: C++17
name: xcpp17
rise:
auto_select: first
autolaunch: false
centered: false
controls: false
enable_chalkboard: false
height: 100%
margin: 0
maxScale: 1
minScale: 1
scroll: true
slideNumber: true
start_slideshow_at: selected
transition: none
width: 90%
+++ {"slideshow": {"slide_type": "slide"}}
Fonctions
+++ {"slideshow": {"slide_type": "fragment"}}
Prélude
+++ {"slideshow": {"slide_type": "slide"}}
Résumé des épisodes précédents ...
Pour le moment nous avons vu :
+++ {"slideshow": {"slide_type": "fragment"}}
- Expressions:
3 * (4+5)
,1 < x and x < 5 or y == 3
+++ {"slideshow": {"slide_type": "fragment"}}
- Variables, types, affectation:
int n = 1 + 1
+++ {"slideshow": {"slide_type": "fragment"}}
- Instruction conditionnelle:
if
+++ {"slideshow": {"slide_type": "fragment"}}
- Instructions itératives:
while
,do ... while
,for
+++ {"slideshow": {"slide_type": "fragment"}}
Tout ce qui est calculable par un ordinateur peut être programmé
uniquement avec ces instructions
(ou presque : il faudrait un accès un peu plus souple à la mémoire)
+++ {"slideshow": {"slide_type": "fragment"}}
Pourquoi aller plus loin?