摘要: 字符操作函数 头文件 #include <string.h> strcpy字符拷贝 #include <string.h> char * strcpy(char * dest,const char * source); 功能:将source所指的字符串拷贝到dest所指的内存空间中, '\0'也会被 阅读全文
posted @ 2020-09-18 22:49 小宇宙zjy 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 函数进阶 函数参数默认值 C语言不支持设置函数默认参数 #define _CRT_SECURE_NO_WARNINGS int test(int a = 0,int b) { return a + b; } int main() { test(1,2); return 0; } 报错: PS D:\ 阅读全文
posted @ 2020-09-18 22:48 小宇宙zjy 阅读(648) 评论(0) 推荐(0) 编辑