摘要:
1 #include <stdio.h> 2 int k = 222, t = 9; 3 void swap(int *a, int *b); 4 5 main() { 6 swap(&k, &t); 7 printf("\nkkkkkk=%d\nttttttttt=%d", k, t); 8 } 阅读全文
摘要:
#include <stdio.h> int k = 222, t = 9; main() { int (*p) = &k; printf("%d\n%d\n%d", p, *p, &t); } 输出 我个人粗浅的理解 p是一个值,代表所指的地址(也就是&k的值) *p是访问p值的地址,并返回访问地 阅读全文
摘要:
while()后面两个if一直没法平行,找了半天原因结果是没用大括号 花括号中多条语句,逻辑上是一个整体,用来组织层次结构! ##tcpl 1-14(半成品) #include <stdio.h> main() { int cts[26], c, max, i; for (i = 0; i < 26 阅读全文
摘要:
[Error] invalid conversion from 'char' to 'const char*' [-fpermissive] #include <stdio.h> main() { int c, lg[12], i, l; for (c = 0; c < 12; ++c) lg[c] 阅读全文
摘要:
#打印输入单词长度的直方图 #include <stdio.h> main() { int c, lg[12], i; for (c = 0; c < 12; ++c) lg[c] = 0; while ((i = getchar()) != EOF) if (i >= 'a' && i <= 'z 阅读全文
摘要:
![](https://img2020.cnblogs.com/blog/2015058/202011/2015058-20201122112012071-346341932.png) 阅读全文
摘要:
#C一维数组 ##1错误示例 #include <stdio.h> main() { int dgt[10], i; for (i = 0; i < 10; ++i) printf( "% d", "dgt[i]"); } 第一次写的时候没有初始化数组元素,打印结果全是4210688 ##2 #in 阅读全文
摘要:
#习题1-10 ##将输入中的符号替换为可见并输出 #include <stdio.h> /* Run this program on itself (this file) and the following string " " will be only one blank long. */ ma 阅读全文
摘要:
#习题1-9 ##将输入中的连续多个空格替换为一个并输出 ``` #include <stdio.h> /* Run this program on itself (this file) and the following string " " * will be only one blank lo 阅读全文
摘要:
https://ruanyifeng.com/blog/2011/11/eof.html 阅读全文