Il codice è questo:Originariamente inviato da oregon
Tutto il tuo codice quale ? Continuo a non vederlo ....
Vorrei facesse tutto in background il conteggio, senza il flash della console iniziale....codice:#include <iostream> using namespace std; #if _WIN32_WINNT < 0x0500 #undef _WIN32_WINNT #define _WIN32_WINNT 0x0500 #endif #include <windows.h> void timeout() { for (int cntr = 3; cntr > 0; cntr--) { cout << "\r" << cntr << flush; Sleep( 1000 ); } cout << "\r" << flush; } int main() { ShowWindow( GetConsoleWindow(), SW_HIDE ); timeout(); ShowWindow( GetConsoleWindow(), SW_RESTORE ); cout << "All done!\n"; system("pause"); }

Rispondi quotando