home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / SQCBW.ZIP / SAMPLES / SAMPLE.C
Encoding:
Text File  |  1996-06-27  |  668 b   |  46 lines

  1. int proc (int par_1,
  2.       char * par_2)
  3. {
  4.     if (   (a == b)
  5.     || (c == d))
  6.     {
  7.     switch (a)
  8.     {
  9.     case 1:
  10.         c = up1 (a,
  11.              b,
  12.              up2 (c,
  13.               d));
  14.         break;
  15.     case 2:
  16.         /* this is a
  17.            multi line comment */
  18.         break;
  19.     default:
  20.         {
  21.         int n;        /* loop counter */
  22.         for (n = 10;
  23.              n > 0;
  24.              n--)
  25.         {
  26.             array [n
  27.                -1] = 0;
  28.         }
  29.         }
  30.     }
  31. #ifdef WINDOWS
  32.     wsprintf (szMessage, szFormat, iParam);
  33.     if (MessageBox (hWnd, szMessage, ...))
  34.     {
  35. #else
  36.     printf (szMessage, szFormat, iParam);
  37.     if (fgets (user_input, ...))
  38.     {
  39. #endif
  40.         /* continuation after user response */
  41.         ...
  42.     }  
  43.     }
  44. }
  45.  
  46.