Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Semaine6
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Info 111 Programmation Impérative
2023-2024
MI1
Semaine6
Commits
ef834983
Commit
ef834983
authored
1 year ago
by
Nicolas M. Thiéry
Browse files
Options
Downloads
Patches
Plain Diff
Préparation
parent
5dcd21fb
No related branches found
Branches containing commit
Tags
2.1523-vsc1.38.1-ls4
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gradebook.db
+0
-0
0 additions, 0 deletions
.gradebook.db
yams.md
+5
-7
5 additions, 7 deletions
yams.md
with
5 additions
and
7 deletions
.gradebook.db
+
0
−
0
View file @
ef834983
No preview for this file type
This diff is collapsed.
Click to expand it.
yams.md
+
5
−
7
View file @
ef834983
...
@@ -538,7 +538,7 @@ nbgrader:
...
@@ -538,7 +538,7 @@ nbgrader:
// REMPLACER CETTE LIGNE PAR VOTRE RÉPONSE
// REMPLACER CETTE LIGNE PAR VOTRE RÉPONSE
```
```
+++ {"deletable": false, "editable": false, "nbgrader": {"cell_type": "markdown", "checksum": "
3e45d93fd76f2bf74aaa7fa5bc09c67b
", "grade": false, "grade_id": "cell-6258bcc27bfdbca7", "locked": true, "schema_version": 3, "solution": false}}
+++ {"deletable": false, "editable": false, "nbgrader": {"cell_type": "markdown", "checksum": "
8263cd72546ce5817e62df1795231e58
", "grade": false, "grade_id": "cell-6258bcc27bfdbca7", "locked": true, "schema_version": 3, "solution": false}}
### Compilation et tests en dehors de Jupyter
### Compilation et tests en dehors de Jupyter
...
@@ -550,7 +550,9 @@ nbgrader:
...
@@ -550,7 +550,9 @@ nbgrader:
- **Enregistrez** votre fichier [`yams.cpp`](yams.cpp)
- **Enregistrez** votre fichier [`yams.cpp`](yams.cpp)
- **Compilez**-le à l'aide de la commande `clang++ yams.cpp -o yams`
- **Compilez**-le à l'aide de la commande `clang++ yams.cpp -o yams`
- **Exécutez** le programme ainsi généré : `./yams`. Le résultat
- **Exécutez** le programme ainsi généré : `./yams`. Le résultat
est-il bien celui attendu ?
est-il bien celui attendu ? Si votre programme tire toujours la même
série de dés, que manque-t-il dans la fonction `main`, qui était
bien présent dans la première cellule de code, en haut de cette page ?
+++ {"deletable": false, "editable": false, "nbgrader": {"cell_type": "markdown", "checksum": "d0dd5a205646a423e8f704efde08198b", "grade": false, "grade_id": "cell-2f1b88aea00c9cca", "locked": true, "schema_version": 3, "solution": false}}
+++ {"deletable": false, "editable": false, "nbgrader": {"cell_type": "markdown", "checksum": "d0dd5a205646a423e8f704efde08198b", "grade": false, "grade_id": "cell-2f1b88aea00c9cca", "locked": true, "schema_version": 3, "solution": false}}
...
@@ -846,7 +848,7 @@ Complétez la fonction `main` ci-dessous :
...
@@ -846,7 +848,7 @@ Complétez la fonction `main` ci-dessous :
deletable
:
false
deletable
:
false
nbgrader
:
nbgrader
:
cell_type
:
code
cell_type
:
code
checksum
:
677f8419c9f599df43bccd0e849f3099
checksum
:
ebfdc7c8981f83f39ef461b120a8f7fc
grade
:
false
grade
:
false
grade_id
:
cell-b7f9ac24211d8b2d
grade_id
:
cell-b7f9ac24211d8b2d
locked
:
false
locked
:
false
...
@@ -898,10 +900,6 @@ int main() {
...
@@ -898,10 +900,6 @@ int main() {
// points au score du joueur, et on affiche le résultat au joueur.
// points au score du joueur, et on affiche le résultat au joueur.
// REMPLACER CETTE LIGNE ET LA SUIVANTE PAR VOTRE RÉPONSE
// REMPLACER CETTE LIGNE ET LA SUIVANTE PAR VOTRE RÉPONSE
throw std::runtime_error("À faire");
throw std::runtime_error("À faire");
// Si l'utilisateur a choisi une figure,
// on calcule le nouveau score et on l'affiche.
// VOTRE CODE ICI
}
}
// FIN DE LA BOUCLE PRINCIPALE
// FIN DE LA BOUCLE PRINCIPALE
return 0;
return 0;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment