]> git.sur5r.net Git - cc65/blob - samples/geos/yesno.c
Latest versions of startup code and config by Karri Kaksonen. Citing: The new
[cc65] / samples / geos / yesno.c
1
2 /*
3
4    GEOSLib example
5
6    example of using DlgBoxYesNo, DlgBoxOkCancel and DlgBoxOk functions
7
8    Maciej 'YTM/Elysium' Witkowiak
9    <ytm@elysium.pl>
10
11    26.12.1999
12  */
13
14 #include <geos.h>
15
16 void main(void)
17 {
18         do {
19                 if (DlgBoxYesNo("Are you female?", "(don't lie ;-)") == YES) {
20                         DlgBoxOk("You claim to be woman!", "You wanna dance?");
21                 } else {
22                         DlgBoxOk("Ergh, another man...", "Let's go for a beer.");
23                 };
24         } while (DlgBoxOkCancel("Do you want to try again?", "") == OK);
25
26 }