#include "stdio.h"
#include "conio.h"
#include "windows.h"
int main(void)
{
printf("Taste druecken, oder 5sec warten\n");
DWORD start_time = GetTickCount(); //Zeit, seit dem Systemstart in ms
while(GetTickCount() - start_time < 5000 && _kbhit()==0); // 5s(5000ms) abwarten, oder tastendruck
if(_kbhit()==0)
printf("Es wurde keine Taste gedrueckt");
else
printf("Es wurde die Taste %c gedrueckt",getch());
getch(); //
return 0;
};
Problem gelöst?
Marxxx 14.06.2007 - 151 Hits - 1 Antwort
Athlon 64 Problem
Tebetron 31.08.2007 - 56 Hits - 1 Antwort
Problem mit word, excel ,access ( 2002 )
senator 29.10.2007 - 148 Hits - 1 Antwort
Problem mit meinem Postausgangs server
T.O. 17.02.2008 - 89 Hits - 9 Antworten