Results 1 to 2 of 2

Thread: I Need Help

  1. #1
    grand gamer99's Avatar
    grand gamer99 is offline Senior Member+
    Last Online
    8th July 2012 @ 01:45 PM
    Join Date
    26 Aug 2009
    Location
    Lahore
    Posts
    81
    Threads
    20
    Credits
    0
    Thanked
    4

    Post I Need Help


    آپ لوگوں سے گزارش ھے کے میری مدد کریں



    Code:
    #include <iostream>
    #include <windows.h>
    
    using namespace std;
    
    int main()
    {
    int sec = 0;
    int min = 0;
    int hour = 0;
    for(sec=0; sec<1000+1; sec+=1)
    {
    system("CLS");
    cout << hour << ":"<< min << ":" << sec << endl;
    Sleep(1000);
    if (sec == 60);
    {
       sec = 0;
       ++min;
          }
    if (min == 60);
    {
          min = 0;
          ++hour;
          }
    
    }
      getchar();
    return 0;
    }
    This is a code for a clock but it went wrong plz help

  2. #2
    *KHAN*JEE*'s Avatar
    *KHAN*JEE* is offline Advance Member+
    Last Online
    14th January 2021 @ 05:22 PM
    Join Date
    09 Apr 2009
    Location
    .*'""*JaNNaT*""
    Gender
    Male
    Posts
    23,576
    Threads
    649
    Credits
    91
    Thanked
    1618

    Default

    Moved from Courses > C++
    Do What is Right, Not What is Easy ...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •