摘要:
001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试程序 #include <stdio.h> int main(void) { int i; printf("i = "); scanf("%d", &i); //读取和输 阅读全文
posted @ 2024-07-28 20:30
小鲨鱼2018
阅读(54)
评论(0)
推荐(0)
摘要:
001、 给int型变量赋值double型数据 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试程序 #include <stdio.h> int main(void) { int i; i = 8.583; printf("i 阅读全文
posted @ 2024-07-28 20:29
小鲨鱼2018
阅读(173)
评论(0)
推荐(0)
摘要:
001、 %f输出int型数据,其值为0. [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试程序 #include <stdio.h> int main(void) { int i = 10; printf("i = %f\n" 阅读全文
posted @ 2024-07-28 20:23
小鲨鱼2018
阅读(144)
评论(0)
推荐(0)

浙公网安备 33010602011771号