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?
Printable View
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 :)
#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 intQuote:
void main()
Is this a function you are writing yourself?? There is a standard sleep function you can use.Quote:
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;
}
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' 1Quote:
end1 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;
}
this is the dude that started this......
ok thx...
Ok I tried that but.... it says _Sleep is an unidentified variable so....... how woudl i identify that? hmm
try including windows.h and using
Sleep(num_of_miliseconds);//note S is capital in Sleep
num of seconds is unidentified variable......
Im new...
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