ok I'm foolin' with sleep. I got it to 1 error it is: Sleep function does not take 1 parameters... whats that mean and how i fix it?
ok I'm foolin' with sleep. I got it to 1 error it is: Sleep function does not take 1 parameters... whats that mean and how i fix it?
Errr do you think you could show us your code, might help
All spelling mistakes, syntatical errors and stupid comments are intentional.
#include <iostream.h>
#include <conio.h>
void main() {
int number = 1;
void Sleep();
void introtxt();
cout << "-Nogork-\nThe Game of Skill\n\nMade by: James A. Reiter.\n";
introtxt("HI");
Sleep();
cout << "Hello, Folks.\n";
}
number 1
Should be int main(), main returns an intvoid main()
Is this a function you are writing yourself?? There is a standard sleep function you can use.void Sleep();
sleep() takes as an argument the number of milliseconds you wish to delay, so 1000 is 1 second.Code:#include <iostream> using namespace std; int main( void ) { _sleep( 1000 ); cout << endl << "hello"; return 0; }
All spelling mistakes, syntatical errors and stupid comments are intentional.
so what u just put was the sleep thing or??? and end1 is just like \n right?
Will you plz rewrite what i did but correctly?
Yes endl is a newline, but its end 'small' L not the 'number' 1end1 is just like \n right?
Code:#include <iostream.h> #include <conio.h> void introtxt( what parameters? ); int main( void ) { int number = 1; cout << "-Nogork-\nThe Game of Skill\n\nMade by: James A. Reiter.\n introtxt("HI"); _Sleep( 1000 ); cout << "Hello, Folks.\n"; return 0; }
Last edited by C_Coder; 03-29-2002 at 05:50 PM.
All spelling mistakes, syntatical errors and stupid comments are intentional.
this is the dude that started this......
ok thx...
HOw are ya?
Ok I tried that but.... it says _Sleep is an unidentified variable so....... how woudl i identify that? hmm
HOw are ya?
try including windows.h and using
Sleep(num_of_miliseconds);//note S is capital in Sleep
num of seconds is unidentified variable......
Im new...
HOw are ya?
I got it to work. but it all goes at the begining i cant do it once then later again it just sorta adds on
HOw are ya?