Update README.md

This commit is contained in:
Simon 2020-01-09 08:03:47 +01:00 committed by GitHub
parent ece14bda5f
commit 334ddcd2b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -4,22 +4,22 @@ CUI generation library for C on Windows
## Hinweis zum Installieren:
Sowohl "menu.c" als auch "menu.h" zum Projektordner hinzufügen und mit #include "menu.h" einbinden.
Sowohl "menu.c" als auch "menu.h" zum Projektordner hinzufügen und mit ```C#include "menu.h"``` einbinden.
### Anwendungsbeispiel
```C
struct MenuItem items[] = {
{"Euklidscher Algorithmus", '1', (void*)&euklid},
{"Gerstenkorn", '2', (void*)&gerste},
{"Gerstenkorn", '2', (void*)&gerste},
{"Osterdatum ausrechnen", '3', (void*)&ostern},
{"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}
{"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}
};
show_menu(sizeof(items) / sizeof(struct MenuItem), items, "Vorlesungsaufgaben", true, true, NO_BORDER);
````