From 4d846fb60641d2584d67141511e8f2cc4c4e9d3b Mon Sep 17 00:00:00 2001 From: Aladin Virmaux <aladin.virmaux@gmail.com> Date: Fri, 4 Mar 2016 16:41:07 +0100 Subject: [PATCH] vocabulaire struct_hard top -> cime --- .../data/struct_hard_1_input.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test~coding~readingCppPrograms.fr/data/struct_hard_1_input.cpp b/test~coding~readingCppPrograms.fr/data/struct_hard_1_input.cpp index 72f0c9e..a3b087f 100644 --- a/test~coding~readingCppPrograms.fr/data/struct_hard_1_input.cpp +++ b/test~coding~readingCppPrograms.fr/data/struct_hard_1_input.cpp @@ -10,7 +10,7 @@ struct cerise { struct cerisier { cerise cerise_gauche; - int top; + int cime; cerise cerise_droite; }; @@ -21,7 +21,7 @@ void initialise_cerise(cerise &miam, int val) { } void initialise_cerisier(cerisier &tree, int val) { - tree.top = val; + tree.cime = val; initialise_cerise(tree.cerise_gauche, val - 2); initialise_cerise(tree.cerise_droite, val + 2); } @@ -35,6 +35,6 @@ int main() { cerisier tree; cin >> n; initialise_cerisier(tree, n); - cout << tree.top + somme_cerise(tree.cerise_gauche) + somme_cerise(tree.cerise_droite) << endl; + cout << tree.cime + somme_cerise(tree.cerise_gauche) + somme_cerise(tree.cerise_droite) << endl; return 0; } -- GitLab