摘要: #define CRT_SECURE_NO_WARNINGS#pragma warning(disable:4996)#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> int m 阅读全文
posted @ 2020-09-11 14:07 wh19991213 阅读(108) 评论(0) 推荐(0) 编辑
摘要: #define CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> int main0101() { //开辟堆空间 int*p=(in 阅读全文
posted @ 2020-09-09 20:34 wh19991213 阅读(528) 评论(0) 推荐(0) 编辑
摘要: #define CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> //形参的参数是从后向前入栈的 void swap(int a,in 阅读全文
posted @ 2020-09-09 20:08 wh19991213 阅读(430) 评论(0) 推荐(0) 编辑
摘要: #define CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> //未初始化全局变量 int a1; //初始化全局变量 int b 阅读全文
posted @ 2020-09-07 20:03 wh19991213 阅读(111) 评论(0) 推荐(0) 编辑
摘要: //全局函数 //第一文件 #define CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> 第二个文件 extern void Bu 阅读全文
posted @ 2020-09-07 19:04 wh19991213 阅读(517) 评论(0) 推荐(0) 编辑
摘要: #define CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> 静态局部变量 void fun01() { //静态局部变量只会初始 阅读全文
posted @ 2020-09-07 18:43 wh19991213 阅读(342) 评论(0) 推荐(0) 编辑
摘要: #define CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> //局部变量 //形参也是局部变量 void fun01(int a 阅读全文
posted @ 2020-09-07 18:17 wh19991213 阅读(107) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> int main0101() { char ch[] = " -1 阅读全文
posted @ 2020-09-04 22:36 wh19991213 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> //字符串截取strtok会破坏源字符串,用\0替换截取的标志位 阅读全文
posted @ 2020-09-04 22:02 wh19991213 阅读(123) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> //使用系统函数strchr在字符串中查找字符 int main0 阅读全文
posted @ 2020-09-04 20:59 wh19991213 阅读(153) 评论(0) 推荐(0) 编辑