mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 06:30:16 +00:00
28 lines
508 B
C
28 lines
508 B
C
|
|
||
|
/*
|
||
|
|
||
|
GEOSLib example
|
||
|
|
||
|
example of using DlgBoxYesNo, DlgBoxOkCancel and DlgBoxOk functions
|
||
|
|
||
|
Maciej 'YTM/Alliance' Witkowiak
|
||
|
<ytm@friko.onet.pl>
|
||
|
|
||
|
26.12.1999
|
||
|
*/
|
||
|
|
||
|
#include <geos.h>
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
do {
|
||
|
if (DlgBoxYesNo("Are you female?", "(don't lie ;-)") == YES) {
|
||
|
DlgBoxOk("You claim to be woman!", "You wanna dance?");
|
||
|
} else {
|
||
|
DlgBoxOk("Ergh, another man...", "Let's go for a beer.");
|
||
|
};
|
||
|
} while (DlgBoxOkCancel("Do you want to try again?", "") == OK);
|
||
|
|
||
|
EnterDeskTop();
|
||
|
}
|