2019-12-19 14:43:20 +01:00
|
|
|
# MenuLib
|
|
|
|
CUI generation library for C on Windows
|
2020-01-09 08:02:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
## Hinweis zum Installieren:
|
|
|
|
|
2020-01-09 08:04:06 +01:00
|
|
|
Sowohl "menu.c" als auch "menu.h" zum Projektordner hinzufügen und mit ```#include "menu.h"``` einbinden.
|
2020-01-09 08:02:55 +01:00
|
|
|
|
|
|
|
### Anwendungsbeispiel
|
|
|
|
```C
|
|
|
|
struct MenuItem items[] = {
|
|
|
|
{"Euklidscher Algorithmus", '1', (void*)&euklid},
|
2020-01-09 08:03:47 +01:00
|
|
|
{"Gerstenkorn", '2', (void*)&gerste},
|
2020-01-09 08:02:55 +01:00
|
|
|
{"Osterdatum ausrechnen", '3', (void*)&ostern},
|
2020-01-09 08:03:47 +01:00
|
|
|
{"ASCII Tabelle", '4', (void*)&ascii},
|
|
|
|
{"DB-Pruefziffer", '5', (void*)&db},
|
|
|
|
{"Modulo 11", '6', (void*)&mod11},
|
|
|
|
{"BLANK", NULL, (void*)NULL},
|
|
|
|
{"Namen TEST", 'a', (void*)&namen},
|
|
|
|
{"Strings", 'b', (void*)&strHeader},
|
|
|
|
{"BLANK", NULL, (void*)NULL},
|
|
|
|
{"Exit", 'q', (void*)&exit}
|
2020-01-09 08:02:55 +01:00
|
|
|
};
|
|
|
|
show_menu(sizeof(items) / sizeof(struct MenuItem), items, "Vorlesungsaufgaben", true, true, NO_BORDER);
|
|
|
|
````
|
|
|
|
|