is there a certain library u need to include when using system("PAUSE");
if not where exactly do i place it. 1,2 or 3?
1. system("PAUSE");
return0;
2. system("PAUSE");
}
3. system("PAUSE");
Printable View
is there a certain library u need to include when using system("PAUSE");
if not where exactly do i place it. 1,2 or 3?
1. system("PAUSE");
return0;
2. system("PAUSE");
}
3. system("PAUSE");
the header file is stdlib.h
hmm... 123?? not exactly. But i know a syntax like this:Quote:
Originally posted by RPG++
is there a certain library u need to include when using system("PAUSE");
if not where exactly do i place it. 1,2 or 3?
1. system("PAUSE");
return0;
2. system("PAUSE");
}
3. system("PAUSE");
[code]
int main()
{
cout << "Hello World!";
system("PAUSE");
return 0;
}
[code]
That was me actaully :)
Code:int main()
{
cout << "Hello World!";
system("PAUSE");
return 0;
}
you can use it whenever you need it, but depending on the compiler and target OS, it's usually recommended to use functions like sleep (int), delay (long), etc...
I like Sleep(...) :D
Its in windows.h if you're interested, but is therefore platform specific
I like CLS :)
And _sleep(unsigned long) is in stdlib.h :)Quote:
Originally posted by endo
I like Sleep(...) :D
Its in windows.h if you're interested, but is therefore platform specific