home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
turbo_c
/
turbbook.arc
/
MAXIMS.C
< prev
next >
Wrap
Text File
|
1987-08-20
|
667b
|
37 lines
/* ------ maxims.c --------- */
#include "twindow.h"
#include "keys.h"
void maxims()
{
int c;
WINDOW *wnd;
set_help("maxims ", 50, 10);
wnd = establish_window(5, 10, 3, 50);
set_title(wnd, "Press F1 for help");
set_colors(wnd, ALL, RED, WHITE, DIM);
display_window(wnd);
while ((c = get_char()) != ESC) {
switch (c) {
case '1':
wprintf(wnd, "\nA stitch in time \
saves nine ");
break;
case '2':
wprintf(wnd, "\nA rolling stone \
gathers no moss");
break;
case '3':
wprintf(wnd, "\nA penny saved \
is a penny earned");
break;
default:
break;
}
}
delete_window(wnd);
}