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.
IHM.cpp
00001 //#define IHM 00002 #ifdef IHM 00003 #include "mbed.h" 00004 00005 // Pour utiliser la liaison serie du port USB 00006 Serial pc(USBTX, USBRX); 00007 00008 int main() 00009 { 00010 //declaration des variables 00011 int age; 00012 char Tab[50]; 00013 00014 //le programme attend l'appui sur une touche avec de s'executer 00015 getchar(); 00016 00017 //interface homme/machine: questions & reponses 00018 puts("Debut du programme"); 00019 00020 printf("Bonjour, quel est ton nom ?"); 00021 scanf("%s",Tab); 00022 puts(""); 00023 00024 printf("Quel age as tu ?"); 00025 scanf("%d",&age); 00026 puts(""); 00027 00028 // affichage des valeurs saisies par l'utilisateur 00029 printf("Bienvenue %s! Tu as %d ans\n",Tab,age); 00030 puts("Fin du programme !"); 00031 00032 return 1; 00033 } 00034 00035 00036 #endif
Generated on Tue Jul 19 2022 21:15:45 by
1.7.2