2000-07-15 09:12:11 +00:00
|
|
|
/*
|
|
|
|
GEOSLib example
|
|
|
|
|
|
|
|
example of using DlgBoxYesNo, DlgBoxOkCancel and DlgBoxOk functions
|
|
|
|
|
2003-01-10 21:09:13 +00:00
|
|
|
Maciej 'YTM/Elysium' Witkowiak
|
|
|
|
<ytm@elysium.pl>
|
2000-07-15 09:12:11 +00:00
|
|
|
|
|
|
|
26.12.1999
|
|
|
|
*/
|
|
|
|
|
2012-02-09 12:32:53 +00:00
|
|
|
|
2000-07-15 09:12:11 +00:00
|
|
|
#include <geos.h>
|
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
2012-02-09 12:32:53 +00:00
|
|
|
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);
|
2000-07-15 09:12:11 +00:00
|
|
|
}
|