DIGIT-ARC read-only archive · snapshot: July 23, 2026

plz help me

5 posts · originally from https://geek.digit.in/community/threads/plz-help-me.79982/

Y
yrakesh78 Original post #1
Feb 9, 2008 at 12:50 PM
hi friends

one of my friend need menu driven program in 'C' the output may be like this

file edit
new cut
open copy
edit paste
save exit
save as
quit
exit


plz help him
victor_rambo
Feb 9, 2008 at 1:50 PM
Is your friend shy that he cannot post here himself? :rolleyes:
J
Jove #3
Feb 11, 2008 at 11:19 AM
hmmm...menu driven programming in C....i donno whether we can design any 'windows' or 'menu graphics' in C as such...perhaps u should go for CPP...It has support libraries for menus...Suppose u want to go for C only..then u can use a switch rite!!

while(1)
{
///show all options
////ask to enter choice like
int choice;
scanf("%d",&choice);
switch(choice)
{
///for each choice call a function
}
}

guess this helps...cheers :)
M
Feb 12, 2008 at 3:48 AM
I believe it can be done using loops and gotoxy, within cmd prompt but that would look really bad IMO. TC will have some options in it's graphics library but that will make the program non-portable and non-standard.