Tuesday, 15 January 2013

sleep function in c++

#include <iostream>
   #include <dos>



     void main()

     {

      int i;
     cout<<"Your program will be terminate in 4 second ...............0kay\n";
      for(i=0;i<4;i++)


     { sleep(1);
     cout<<i<<endl;

    }


}

0 comments:

Post a Comment