cout << "Bienvenue : \n"<< flush;
#include <windows.h> #include using namespace std; int main() { int i = 20; while(i) { cout << "texte_à_afficher"; i--; Sleep(100); } }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionint main() { cout << "Bienvenue : \n"; Sleep(5000);//pareil avec system("PAUSE") cout << "Fin de programme : \n"; return 0; }
int main() { int i, tour, x; tour = 20; printf("Bienvenue : \n"); Sleep(1000); do { i = 0; x = 162; do { x = x * (1037 + x) + 11; i++; } while (i <= 5); printf("%d :\n",tour); Sleep(1000); tour = tour + 1; } while (tour <= 30); Sleep(1000); printf("c'est bon, programme terminé!\n"); Sleep(9000); return 0; }
int main() { int i, tour, x; tour = 20; cout << "Bienvenue : \n"; cout.flush();//forcer affichage Sleep(1000); do { i = 0; x = 162; do { x = x * (1037 + x) + 11; i++; } while (i <= 5); cout << tour; cout << " : "; cout << " \n"; cout.flush();//forcer affichage Sleep(1000); tour = tour + 1; } while (tour <= 30); Sleep(1000); cout << "c'est bon, programme terminé!"; cout.flush();//forcer affichage Sleep(9000); return 0; }
cout << "Bienvenue :"<< endl;