wait is a Cquery function which takes an integer argument and hold the program execution.
Syntax:
wait(seconds) //seconds can be any integer number
Examples:
/** This program will close ** after two seconds **/ #include<cquery.h> void main(void) { printf("I will close after 2 seconds"); wait(2); }
/** This program will close ** after two seconds **/ #include<cquery.h> void main(void) { int i = 5; printf("I will close after 5 seconds"); wait(i); }
No comments:
Post a Comment