I am having problems with the sleep()
function not working. For example:
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char* argv[]){
printf("\nHello!");
sleep(1);
printf("\nBye!");
sleep(1);
return 0;
}
Even simple programs like this won't work. It will sleep for 2 seconds then say "Hello! Bye!" and end the program. If anyone has any ideas they are appreciated!