正在加载图片...
C语言程序设计 例 #define PRIce 12.5 宏定义 maino i int num=3 float total 变量定义 char chI,ch2=D’; total=num Price chl=ch2-A’+“a’; 输出结果 printf(“ total=%f,ch1=%cm” total,ch1) 第二章数据描述 运行结果: tota|=37.500000,ch=d例 #define PRICE 12.5 main() { int num=3; float total; char ch1,ch2=‘D’; total=num*PRICE; ch1=ch2-‘A’+‘a’; printf(“total=%f,ch1=%c\n”,total,ch1); } 宏定义 变量定义 输出结果 运行结果: total=37.500000, ch1=d 语 言 程 序 设 计 第 二 章 数 据 描 述 C
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有