sorry about my english
i make a game and i need to use on interrupt i/o(input), someone can to help me??
the code is :
cout<<"Enter num : ";
for(i=1; i<=100000000; i++){//its loop time
// here the interrupt // when the user click some key its
//stop the loop and goto input(num)
//but when the time over its stop and say him "you are loose" and exit
MaxTime--;
if(MaxTime == 0)
{
cout<<"You are losse"<<endl;
exit(1);
}
}
cin>>num;