|
From: Louis B. <bar...@ho...> - 2001-03-09 16:08:21
|
Thanks, I'll be back working on that project tonight.
Thanks again.
>From: "Ramana Kumar" <ra...@my...>
>Reply-To: dev...@li...
>To: <dev...@li...>
>Subject: RE: [Dev-C++] Clocking a second
>Date: Fri, 9 Mar 2001 19:04:23 +1100
>
>Backspace should work. If you don't know it is \b.
>
>-----Original Message-----
>From: dev...@li...
>[mailto:dev...@li...]On Behalf Of Louis Barba
>Sent: Wednesday, 7 March 2001 7:18 PM
>To: dev...@li...
>Subject: [Dev-C++] Clocking a second
>
>I'm another one of those guys leaving harvesting and trying out
>programming.
>In this program I must display the time, secs, mins, and hours. I'm still
>working on it, I was wondering if there is a better way to make it wait a
>minute than doing a while loop. Also, I don't want the thing scrolling down
>the screen, it seems like it should not move, I have'nt wrote that part,
>but
>I will tonight. I would think that you don't do carriage return line feed,
>and use a backspace character ?
>
>Here's my member function prototype in the class Time
>
> // Wait a second
> void wait_a_second();
>
>Here's my "While Loop" definition in the Function File
>
>// Wait one second, set for Intel Celeron Processor 366MHZ
>void Time::wait_a_second()
>{
> int count_down = 51000000; //iterations for 366 celeron
>pocessor
>//Wait for second to lapse
> while(count_down > 0) //simple repetitive instruction
> {
> count_down += -1; //decrement value in variable
> }
>}
>
>Again, I will be working on the stationary display tonight.
>
>thanks for any ideas
>
>Louis
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
|