PDA

View Full Version : plz help me


yrakesh78
09-02-2008, 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

rohan_shenoy
09-02-2008, 01:50 PM
Is your friend shy that he cannot post here himself? :rolleyes:

Jove
11-02-2008, 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 :)

mehulved
12-02-2008, 03: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.

Rockstar11
12-02-2008, 03:55 AM
Is your friend shy that he cannot post here himself? :rolleyes:

lolzz :D