Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of AFFICHAGE by
Revision 3:97cb6955fab2, committed 2017-02-09
- Comitter:
- fab16
- Date:
- Thu Feb 09 14:35:15 2017 +0000
- Parent:
- 2:9a0f0587d296
- Child:
- 4:7c1e87f81b55
- Commit message:
- v2
Changed in this revision
| Affichage.cpp | Show annotated file Show diff for this revision Revisions of this file |
| Affichage.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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
--- a/Affichage.h Thu Feb 09 08:41:07 2017 +0000
+++ b/Affichage.h Thu Feb 09 14:35:15 2017 +0000
@@ -1,8 +1,13 @@
+#include "m3pi.h"
-class Affichage : Action{
+class Affichage {
- void presenter();
- void bonjour();
- void setNom();
+
+ public :
+
+ void presenter();
+ void bonjour();
+ void setNom(char * name);
+
};
\ No newline at end of file
