title: Sleep function error
body: <p>I have no idea what the problem is, nor do i know the error message, but i have an error on the sleep function, line 41. I cannot figure it out. thanks in advance guys------------(I have nothing else to say  but it wont post wihtout more words) EDIT--another error appears on the  if(GetAsyncKeyState) line</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  
  
  using namespace std;
  
  int main(int argc, char *argv[])
  {
  
                  bool exit=false;
                  int hour, minute, second=0;
      cout&lt;&lt;"Enter the hour: "&lt;&lt;endl;
      cin&gt;&gt;hour;
      system("cls");
      cout&lt;&lt;"Enter the minute: "&lt;&lt;endl;
      cin&gt;&gt;minute;
      system("cls");
      while(exit==false) {
  if(minute&gt;9 &amp;&amp; second&gt;9)
  {
      cout&lt;&lt;hour&lt;&lt;":"&lt;&lt;minute&lt;&lt;":"&lt;&lt;second;
  
  }
  if(minute&lt;10 &amp;&amp; second&lt;10)
  {
      cout&lt;&lt;hour&lt;&lt;":0"&lt;&lt;minute&lt;&lt;":0"&lt;&lt;second;
  
  }
  if(minute&lt;10 &amp;&amp; second&gt;9)
  {
      cout&lt;&lt;hour&lt;&lt;":0"&lt;&lt;minute&lt;&lt;":"&lt;&lt;second;
  
  }
  if(minute&gt;9 &amp;&amp; second&lt;10)
  {
      cout&lt;&lt;hour&lt;&lt;":"&lt;&lt;minute&lt;&lt;":0"&lt;&lt;second;
  
  }
  
  Sleep(1000);
  second++;
  
  
  
  if(GetAsyncKeyState(VK_ESCAPE))
  {
      exit=true;
  
  }
              }
  
  
  
      cout&lt;&lt;endl;
  return EXIT_SUCCESS;
  
  }
  </code></pre>