affichage v7

Fork of AFFICHAGE by Projet robot

Revision:
3:97cb6955fab2
Parent:
2:9a0f0587d296
Child:
4:7c1e87f81b55
--- a/Affichage.cpp	Thu Feb 09 08:41:07 2017 +0000
+++ b/Affichage.cpp	Thu Feb 09 14:35:15 2017 +0000
@@ -1,27 +1,26 @@
-#include "Action.h"
-#include "Affichage.h"
+#include "Affichage.h"    
 
+ m3pi m3piA;
+  
     void Affichage::presenter(){
-        m3pi.cls();
-        char * message = "Bonjour";
-        
-        for(int i=1;i<8;i++){
-            m3pi.print(message,i);
-            wait(1);
-            m3pi.cls();
-        }
-        
+        m3piA.cls();
+        char * message = "Je suis George";
     }
     
     
     void Affichage::bonjour(){
-        
+        m3piA.cls();
+        m3piA.print("Bonjour",7);
+        wait(1);
     
     
     }
     
     
-    void Affichage::setNom(){
-        
-        
-    }
\ No newline at end of file
+    void Affichage::setNom(char * name){
+        int tailleMessage = strlen(name) + 9;
+        char * nom = strcat("Enchante",name);
+        m3piA.print(nom,tailleMessage);
+     
+    }
+    
\ No newline at end of file