Torbj�rn Kristoffersen wrote:

> I'm making a movie database program that takes the title
> and the year from a file and displays it on stdout.
> But i want a prompt that says "hit enter for next page.."
> when one page has been displayed, and so on.
> 
> I tried with something like:
> 
> for(;;)
> {
>   //other functions
>   
>   n++;
>   if(n==25 || n==50)
>   {
>      printf("hit enter for the next page..\n");
>      getchar();
>   }
> }
> 
> but it didn't work, has anyone got a solution to my little problem? 

In what way didn't it work? If it never prints the message, then it's
due to something in the `//other functions' section.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to