home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
C
/
WINCLIP
/
EXAM23.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-01
|
656b
|
23 lines
#include "window.h"
#define NORM CREATE_VIDEO_ATTRIBUTE(black,white)
WPOINTER w;
char *s1 = "This string will wrap around to the next line\n";
char *s2 = "This escape code will ring the bell \a";
int i = 3;
double j = 5.6;
main()
{
WindowInitializeSystem();
WindowSaveInitial(0);
w = WindowInitialize(BORDER,1,1,30,10,NORM,NORM,SINGLEBOX);
WindowOpen(w);
WindowDisplay(w,1,NOEFFECT);
WindowPrintf(w,"3+2 is equal to %d\n",3+2);
GET_KEY();
WindowPrintf(w,"i is equal to %d\nj is equal to %lf\n",i,j);
GET_KEY();
WindowPrintf(w,s1);
GET_KEY();
WindowPrintf(w,s2);
}