Webhosting in Pakistan
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

    Webhosting in Pakistan

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



    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
    Join Date
    09 Apr 2009
    Location
    .*'""*JaNNaT*""
    Gender
    Male
    Posts
    23,573
    Threads
    649
    Credits
    25
    Thanked
    1618

    Default

    Webhosting in Pakistan
    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
  •