摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> int main01() { //野指针:指针变量指向一个未知空间 阅读全文
posted @ 2020-08-22 16:06 wh19991213 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> int main01() { //定义指针变量存储变量地址 int 阅读全文
posted @ 2020-08-22 15:46 wh19991213 阅读(567) 评论(0) 推荐(0) 编辑
摘要: //添加一个源文件 main1.c #include<stdio.h> //"":导入自己的头文件 #include"fun2.h" int main() { //gcc-o hello.exe main1.c fun2功能实现.c fun2.h head.h //没有什么先后顺序,编译器会自动找到 阅读全文
posted @ 2020-08-20 10:38 wh19991213 阅读(147) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> #include<time.h> //如果定义在主函数上面就不需要声明;如果定义在主函数下 阅读全文
posted @ 2020-08-19 18:54 wh19991213 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> #include<time.h> //无参函数 int fun01() { return 阅读全文
posted @ 2020-08-19 18:43 wh19991213 阅读(89) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> int my_strcmp(char ch1[],char ch2 阅读全文
posted @ 2020-08-18 22:39 wh19991213 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> /* 返回值类型 函数名 (参数列表) { 代码体 return 阅读全文
posted @ 2020-08-18 22:10 wh19991213 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdlib.h>#include<time.h>#include<stdio.h> int main01() { srand((size_t)time(NULL)); for(int i=0;i<100;i++) { 阅读全文
posted @ 2020-08-18 21:09 wh19991213 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> int main01() { //计算字符串有效个数 char c 阅读全文
posted @ 2020-08-18 20:08 wh19991213 阅读(1193) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> int mian01() { /*scanf和gets:由于sca 阅读全文
posted @ 2020-08-17 08:56 wh19991213 阅读(84) 评论(0) 推荐(0) 编辑