正在加载图片...
例/*ch2003c* 程 #define PRICe 12.5 宏定义 设 maint 计 i int num=3 float total 变量定义 char chI,ch2=D’; total=num PRICE 输出结果 ch1=ch2-A+a printf( total=%f ch1=%cn, total, ch1) 第三章数据描述 运行结果: tota=37.500000.ch1=d例 /*ch2_003.c*/ #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 高等教育资讯网 版权所有