Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

ex: c++ sleep function

#include <iostream> 
#include <windows.h> // WinApi header 

using namespace std;

int main() 
{ 
    Beep(523,500); // 523 hertz (C5) for 500 milliseconds     
    cin.get(); // wait 
    return 0; 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sleep #function
ADD COMMENT
Topic
Name
5+9 =