Question: Hi, I need a basic example(in C) how to apply next and previous in a menu. My menu has 3 sections 1st one is files.
Hi, I need a basic example(in C) how to apply next and previous in a menu. My menu has 3 sections 1st one is files. then directories and then operations. So In files, I need to show the name of 8 files hit next if there are more files it will show the remaining file names or else it will show the directories. After directory names (which are only 3 ), I hit next options are edit, sort, run, quit. Again mainly I need how to apply next and previous and also how to show 1st show 8 file names then remaining file names.
The best answer and the best review is promised. Yes, I need to apply it in the command line. So for exmaple the out put should look like this:
Files: 0.main.c
1.avc.txt
3. etc......(at least 8 files)
Directories: 0. dir
1.dir
Operations: E edit
S sort
R run
etc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
