Have a look on this code
struct time t;
printf("The current time is: %2d:%02d:%02d\n", t.ti_hour, t.ti_min, t.ti_sec);
cout<<"Enter a number: ";
cout<<"\nEntered no.: "<<n;
My problem is that I want to show the current time(like a clock) and simultaneously run the code in main()... I mean to say that is it possible that TIME() can be run alongwith and allowing to enter data also on other functions like multi-tasking...
By the way I've heard about some thing called multi-threading... Will I have to go that way. Please help and suggest the required codes!!
Actually, I was using gotoxy() to fix a particular display position for my time and I've used the for loop to make it run continuously like a clock.....If u have a another code then u can suggest me. What I want is that to run the clock (by some means) and at the same time allow the user to work their normal task.. :)