When 'cin' statement works we have no other choice but to input a value to it and proceed to the next statement.
I want the program to be set in such a way that the cin statement functions only for 3 seconds and after that the next statement must work regardless of whether value is given into it or not.