Yes, I'm using Windows and Dev-C++ at the moment. I've searched for WM_TIMER and SetTimer and things but not found any useful guide as to how to use them. Can you start me off in terms of the code I'd need to use to solve my problem? Basically, a user will be typing after I use 'getline(cin,essay)', and I want to stop them typing (and store what they have typed so far) when 10 minutes has passed.
Thanks for the help, Robin. --- In [email protected], Ananth <[EMAIL PROTECTED]> wrote: > > On 9/4/07, remarknibor <[EMAIL PROTECTED]> wrote: > > Hi. > > > > I was wondering how to have a timer running while accepting a user's > > input. Specifically, I am having someone write an essay and I'm saving > > it to a variable when it's done using 'getline(cin,essay)'. However, > > while the person is typing their essay, nothing else in the programme > > is happening, and I'd actually like to be able to time their writing > > and stop them when 10 minutes has passed. > > > > Any ideas as to how I could achieve this? > > > What OS do you want this in? > If Windows, search for WM_TIMER > > Cheers > - Ananth >
