int main()
{
int i=0;
int count =0;
cout<<"Please Input Speed Of Timer (ms):";
cin>>second;
for(;;)
{
for(i=0;i<second;i++)
{usleep(100*100);}
printf("%d\n",count++);
}
return main();
}
What is mean by 'usleep(100*100)' &
'printf("%d\n",count++)' .
Convenient help is to google "man funcname". Try "man usleep", for example.
(For those programming on Windows, use "msdn" instead of "man".)
thank for information ~~
@ResidentBiscuit : The website u provide help a lot thanks~~ :-)
@Duoas : Where should we use "man" ?