Skip to content

A program to take in a menu as input from a text file, generate a general purpose binary tree from it and then generate a C file which makes the menu using switch statements for efficiency.

Notifications You must be signed in to change notification settings

neiljohn-gh/Menu-Program-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Menu-Program-Generator

A program to take in a menu as input from a text file, generate a general purpose binary tree from it and then generate a C file which makes the menu using switch statements for efficiency. the input menu uses a tab to add a child. Menu items in the same level are siblings.

To run

gcc menugenerator.c -o prog
./prog < menu.dat > out.c
gcc out.c -o out
./a.out

You can now select sub menus by choosing 1,2,3... 0 to go back a level and an invalid entry stays in the same level

About

A program to take in a menu as input from a text file, generate a general purpose binary tree from it and then generate a C file which makes the menu using switch statements for efficiency.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages