home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / WINCLIP / EXAM23.C < prev    next >
C/C++ Source or Header  |  1993-12-01  |  656b  |  23 lines

  1.   #include "window.h"
  2.   #define NORM   CREATE_VIDEO_ATTRIBUTE(black,white)
  3.   WPOINTER w;
  4.   char *s1 = "This string will wrap around to the next line\n";
  5.   char *s2 = "This escape code will ring the bell \a";
  6.   int i = 3;
  7.   double j = 5.6;
  8.  
  9.   main()
  10.   {
  11.     WindowInitializeSystem();
  12.     WindowSaveInitial(0);
  13.     w = WindowInitialize(BORDER,1,1,30,10,NORM,NORM,SINGLEBOX);
  14.     WindowOpen(w);
  15.     WindowDisplay(w,1,NOEFFECT);
  16.     WindowPrintf(w,"3+2 is equal to %d\n",3+2);
  17.     GET_KEY();
  18.     WindowPrintf(w,"i is equal to %d\nj is equal to %lf\n",i,j);
  19.     GET_KEY();
  20.     WindowPrintf(w,s1);
  21.     GET_KEY();
  22.     WindowPrintf(w,s2);
  23.   }