home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / dos / prg / alb_c10 / chap_07 / ch07_08.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-29  |  824 b   |  25 lines

  1. /*********************************************************************
  2. *  CH07_08.C                                 Directives et macros  *
  3. *                     la substitution de chaεne #  *
  4. *                 et la fusion d'ΘlΘments sΘparΘs par ##  *
  5. *********************************************************************/
  6.  
  7. #include<stdio.h>
  8.  
  9. #define Afficher( chaine) printf(#chaine "\n")
  10. #define Get( n) printf("\n La variable est: Z" #n "= %d\n", Z ## n)
  11.  
  12. main( void)
  13. {
  14.     int Z5= 12345;
  15.  
  16.     Afficher( Petrus Albulus qui etait comptable ne manquait);
  17.     Afficher( jamais   apres ses ablutions du matin de s incliner trois);
  18.     Afficher( fois   religieusement en direction du quai de Bercy ou il);
  19.     Afficher( voyait le tabernacle sacre de la majeste de l Etat.);
  20.  
  21.     Get(5);
  22. }
  23.  
  24. /*
  25.  La variable est: Z5= 12345                        */