i want to make a clock

This is a discussion on i want to make a clock within the C++ Programming forums, part of the General Programming Boards category; same thing.... ur just connecting to someone elses system clock....

  1. #31
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    same thing.... ur just connecting to someone elses system clock.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  2. #32
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    pode, you have no idea how much your stupid flames make me not want to help you, but sorensen, tgm, and stoned coder are right. The only way I can think to count 1 second without using the system clock is to use a tight loop that executes some set number of times that just happens to come out at 1 second. Test with a stopwatch. This is ridiculous.

  3. #33
    Registered User heat511's Avatar
    Join Date
    Dec 2001
    Posts
    169

    here's your stupid clock

    Code:
    #include<time.h>
    #include<iostream.h>
    #include<windows.h>
    
    const int x = 2;
    
    int main()
    {
    	do
    	{
    		time_t hold_time;
    		hold_time = time(NULL);
    		cout << "This code is messy, but it works" << endl;
    		cout<<"The date is: "<< ctime(&hold_time) << endl;
    		Sleep(1000);
    		system("CLS");
    	}
    	while(x < 1000);
      return 0;
    }
    why would you do it any other way, when this works?

  4. #34
    Registered User heat511's Avatar
    Join Date
    Dec 2001
    Posts
    169

    here's your stupid clock

    Code:
    #include<time.h>
    #include<iostream.h>
    #include<windows.h>
    
    const int x = 2;
    
    int main()
    {
    	do
    	{
    		time_t hold_time;
    		hold_time = time(NULL);
    		cout << "This code is messy, but it works" << endl;
    		cout<<"The date is: "<< ctime(&hold_time) << endl;
    		Sleep(1000);
    		system("CLS");
    	}
    	while(x < 1000);
      return 0;
    }
    why would you do it any other way, when this works?

  5. #35
    Registered User
    Join Date
    Dec 2001
    Posts
    11

    clock

    This is a clock which is handled by system and graphics mode but not in oop.
    Attached Files Attached Files
    All is well that ends well

  6. #36
    Registered User GreenCherry's Avatar
    Join Date
    Mar 2002
    Posts
    65

    Knowledge

    Before you come in here and make petty attempts, why dont you actually learn about this stuff, take a class or something, i am learning all this easily in a class. So deal with what we provide you and try to understand it yourself.

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. trying to make a KenGen ( for a game tool )
    By lonewolfy in forum C# Programming
    Replies: 4
    Last Post: 03-28-2007, 08:23 AM
  2. Win32 Common Controls in C++, how do i make and use them?
    By C+noob in forum Windows Programming
    Replies: 6
    Last Post: 01-09-2006, 10:53 AM
  3. make all rule
    By duffy in forum C Programming
    Replies: 9
    Last Post: 09-11-2003, 01:05 PM
  4. Question about atheists
    By gcn_zelda in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 08-11-2003, 11:50 AM
  5. 'functions' in make?
    By mart_man00 in forum C Programming
    Replies: 1
    Last Post: 06-21-2003, 02:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21