remarknibor 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?
>   
well, first of all, getline(cin, essay) is likely to get you one line of 
the essay not the whole thing

as for timing something, why don't you read the clock at the beginning, 
then read it again when the person is done
> Thanks in advance for the help,
>
> Robin.
>
>
>
> To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>. 
> Yahoo! Groups Links
>
>
>
>
>   

Reply via email to