【C语言及程序设计】定义变量 的两种方法

 1 #include "stdafx.h"
 2 #include <stdio.h> 
 3 #define  x 123.456
 4 
 5 int main()
 6 {
 7     int y;
 8     y = x;
 9 
10     printf("%4.2lf\t%d\n", x, y);
11 
12     return 0;
13 }

结果

=

猜你喜欢

转载自www.cnblogs.com/miyazakehime/p/9120925.html
今日推荐