home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <stdlib.h>
- #include "pcwproto.h"
-
- int set_int29(void);
- void reset_int29(void);
-
- #define rnd(x) (rand() % (x))
- void main(void) {
-
- WNDPTR *wnd;
- int mxr, mxc, i;
-
- /* Create a box with a advertisment for the C language */
-
- chk_video_state(&mxr,&mxc);
- bordercolor(YELLOW,BLUE);
- wnd = wframe(5,10,20,70,LIGHTGRAY,BLUE);
- set_int29();
- for (i = 0; i < 100; i++)
- printf("Hello World!");
- system("dir");
- system("c:\csource\qwrite.exe");
- printf("That's all folks. Great is it not?!");
- keywait(5);
- reset_int29();
- wpop(wnd);
- }
-
-