1 2 3 4

2020年12月23日

C语言之Const修饰指针

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h> #define _CRT_SCURCE_NO_WARINGSint main(){ //const 修饰指针 int x = 10; printf("未被指针修改之前的x的值:%d \n 阅读全文

posted @ 2020-12-23 13:28 三日坊主i 阅读(199) 评论(0) 推荐(0)

C语言之万能指针

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h> #define _CRT_SCURCE_NO_WARINGSint main(){ //万用指针就是可以根据数据类型改变的指针类型 int a = 10; //指向了一个int类型的数据 阅读全文

posted @ 2020-12-23 13:17 三日坊主i 阅读(255) 评论(0) 推荐(0)

C语言之野指针

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h> #define _CRT_SCURCE_NO_WARINGSint main(){ // 野指针就是指针指向了一个空的内存地址,所以形成了一个野指针。 // 野指针和空指针的区别就是,野 阅读全文

posted @ 2020-12-23 12:55 三日坊主i 阅读(167) 评论(0) 推荐(0)

2020年12月16日

C语言之空指针

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h> #define _CRT_SCURCE_NO_WARINGSint main(){ //空指针就是指向空地址的一个指针,通常用于条件判断来使用 int *p1 = NULL; print 阅读全文

posted @ 2020-12-16 20:58 三日坊主i 阅读(461) 评论(0) 推荐(0)

C语言之指针的定义与使用

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h> #define _CRT_SCURCE_NO_WARINGSint main(int argc, char *argv[]){ int x = 10; int *p1 = &x; //被 阅读全文

posted @ 2020-12-16 17:28 三日坊主i 阅读(213) 评论(0) 推荐(0)

C语言多文件联合编程模式

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h> extern void Speaks(); //extern关键字修饰的变量和函数等,都是可以被整个项目共享调用的,所以可以使用extern函数来引入其他文件的内容,但是要把要引入的东西 阅读全文

posted @ 2020-12-16 17:08 三日坊主i 阅读(215) 评论(0) 推荐(0)

C语言之函数的定义与使用

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>#define _CRT_SCURCE_NO_WARINGS void speak(){ printf("我很帅。。 \n"); // 无参数,无返回值的 阅读全文

posted @ 2020-12-16 17:01 三日坊主i 阅读(518) 评论(0) 推荐(0)

C语言之字符串转换

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>#define _CRT_SCURCE_NO_WARINGS int main(){ char add[] = "100 a"; //当字符串中有转换的数据类型的数据的时候,可以使用ato 阅读全文

posted @ 2020-12-16 16:41 三日坊主i 阅读(1219) 评论(0) 推荐(0)

C语言之strtok函数

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>#define _CRT_SCURCE_NO_WARINGS int main(){ char add[] = {"JingsliLiu"}; printf("未使用strtok之前: " 阅读全文

posted @ 2020-12-16 16:30 三日坊主i 阅读(220) 评论(0) 推荐(0)

C语言之strchr函数

摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>#define _CRT_SCURCE_NO_WARINGS int main(){//strchr函数就是将要查找的字符查找到之后,从查到到的地方开始,记住后面的字符。 char add 阅读全文

posted @ 2020-12-16 14:53 三日坊主i 阅读(237) 评论(0) 推荐(0)

< 2025年6月 >
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12

导航

统计

点击右上角即可分享
微信分享提示