On Thu, 17 Sep 1998, Glynn Clements wrote:

->   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.

and consider resetting n to 0 after each screenful. That way you don't
need to check for n==25 || n==50 || n==75.....

if (n > 24) {
        printf ("Press <enter> for next page...\n");
        getchar();
        n=0; /* because we all know the screen really goes from 0->24 */
}

-- 
+++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++
[EMAIL PROTECTED]                    http://x-map.home.ml.org

Reply via email to