摘要: #include <stdio.h> void main(void) { if (printf("hello world!")) {} } 阅读全文
posted @ 2020-06-05 23:56 xuecl 阅读(219) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> void fun(char *a){ if(*a == '\0'){ return ; } fun(a+1); printf("%c",*a); } int main(){ char s[] = {'a','b','c','d','e'}; fun(s); ret 阅读全文
posted @ 2020-06-05 23:51 xuecl 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> void fun(char *str,int len){ for(int i=0;i<len/2;i++){ char temp = str[i];str[i] = str[len-1-i]; str[len-1-i] = temp; } for(int i=0; 阅读全文
posted @ 2020-06-05 23:50 xuecl 阅读(234) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/Anker/archive/2013/03/09/2951878.html 阅读全文
posted @ 2020-06-05 00:34 xuecl 阅读(140) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_36653505/article/details/81701181 https://www.cnblogs.com/kubixuesheng/p/4397798.html 阅读全文
posted @ 2020-06-04 18:23 xuecl 阅读(77) 评论(0) 推荐(0) 编辑
摘要: NAME uname - print system information SYNOPSIS uname [OPTION]... DESCRIPTION Print certain system information. With no OPTION, same as -s. -a, --all p 阅读全文
posted @ 2020-05-27 17:58 xuecl 阅读(347) 评论(0) 推荐(0) 编辑
摘要: http://c.biancheng.net/view/2275.html构造函数 http://c.biancheng.net/view/2276.html析构函数 阅读全文
posted @ 2020-05-13 12:19 xuecl 阅读(152) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/lihao21/article/details/8634876?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&dept 阅读全文
posted @ 2020-05-13 12:07 xuecl 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1. 全局静态变量 在全局变量前加上关键字static,全局变量就定义成一个全局静态变量. 静态存储区,在整个程序运行期间一直存在。 初始化:未经初始化的全局静态变量会被自动初始化为0(自动对象的值是任意的,除非他被显式初始化); 作用域:全局静态变量在声明他的文件之外是不可见的,准确地说是从定义之 阅读全文
posted @ 2020-05-13 10:44 xuecl 阅读(1462) 评论(0) 推荐(0) 编辑
摘要: 假设: 二叉树的结点数为n, 叶子结点数为n0, 度为1的结点数为n1, 度为2的结点数为n2, 边的数量为b 则有:n = n0 + n1 + n2; b = n - 1;(树的性质:边数量 = 结点数 - 1) 变形:b = n0 + n1 + n2 - 1; b = n1 + 2 * n2;( 阅读全文
posted @ 2020-05-12 13:32 xuecl 阅读(2830) 评论(0) 推荐(2) 编辑