468,513 Members | 1,873 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

program to set page break

Hi
I want to display three pages of data on output screen.after displaying one page the program should pause and ask the user to continue or not.if he want to continue
it should display the next page.the program should be in C.

If any one knows please help me.

thanks,

ashok p
Aug 3 '06 #1
2 6062
Savage
1,764 Expert 1GB
Hi
I want to display three pages of data on output screen.after displaying one page the program should pause and ask the user to continue or not.if he want to continue
it should display the next page.the program should be in C.

If any one knows please help me.

thanks,

ashok p
You could use one variable that will represent a choice.For example:

char choice;

/*Your first part of text.*/

printf("Proceed(Y//N);
choice=getche();
switch(choice)
{
case 'Y':case 'y' goto proceed;
default: exit(1);
}
proceed:;

And then enter your secound part and repeat for third.


Savage.
Mar 1 '07 #2
but how to perform all functions of first page,then go to second page to perform functions there then proceed to the third?
Sep 29 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Scanner2001 | last post: by
7 posts views Thread by tyler_durden | last post: by
15 posts views Thread by tigrfire | last post: by
13 posts views Thread by vgame64 | last post: by
7 posts views Thread by =?Utf-8?B?aXdlYg==?= | last post: by
reply views Thread by ragnarok8990 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.