234234234
摘要: #include <stdio.h> int main(int argc, char * argv[]) { int x;float y; scanf("%2d%f", &x, &y); printf("%d %f", x, y); return 0; } 阅读全文
posted @ 2020-09-29 17:29 你若愿意,我一定去 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 简单记录一下: 以#define ABC(x) x*x 为例 错误的认识:int a = 3; 则 ABC(a+1)=(a+1)*(a+1)=4*4=16 正确:int a = 3; 则ABC(a+1)=a+1*a+1=7 (把x直接用a+1替换) 额,不知道这样讲哦不哦看 更新下......... 阅读全文
posted @ 2020-09-29 17:12 你若愿意,我一定去 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 参考博客:http://c.biancheng.net/view/2054.html 交大家一个记忆的方法,我觉得挺好用: 第一:记住全称 。r=>read(读), w=>write(写), a=>append(追加),这个应该是最好记住的。 第二:打开失败。包含r打开方式的,文件不存在就会打开失败 阅读全文
posted @ 2020-09-29 16:50 你若愿意,我一定去 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main(int argc, char * argv[]) { // 参数的个数,包括自身的文件名 printf("%d\n", argc); int i = 0; while(i < argc) { printf("%s\n", argv[i++]); 阅读全文
posted @ 2020-09-29 16:24 你若愿意,我一定去 阅读(138) 评论(0) 推荐(0) 编辑
23423423423