Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 30th, 2012  |  syntax: None  |  size: 0.22 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // apple xcode
  2. // paulogp
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main (int argc, const char * argv[])
  8. {
  9.         for (int i = 0; i < 10; i++)
  10.         {
  11.                 cout << i << endl;
  12.                 sleep(1); // 1s
  13.         }
  14.  
  15.         cout << "done" << endl;
  16.  
  17.         return 0;
  18. }