摘要: #include <stdio.h> #define N 6 void input(int *p,int n); void ouput(int *p,int n); int main(){ int a[N]; input(a,N); ouput(a,N); return 0; } void inpu 阅读全文
posted @ 2021-02-02 17:09 windin 阅读(375) 评论(0) 推荐(0) 编辑
摘要: Unix时间戳,从1970-1-1 0:0:0 UTC到现在的累计时间:秒数,毫秒数 public static DateTime UnixTimeStampStart = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); DateTime的T 阅读全文
posted @ 2021-01-15 17:46 windin 阅读(7886) 评论(0) 推荐(0) 编辑
摘要: 创建空仓库:git init [repo]添加远程库地址:git remote add origin [url]设置分散检出配置项为真:git config core.sparsecheckout true输入要克隆的部分文件路径地址(相对于根路径)到文件:echo "path/" >> .git/ 阅读全文
posted @ 2021-01-03 17:52 windin 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 1.初始化git仓库: 进入任意目录,右键选择:Git Bash Here,输入命令:git status 查看当前git库的状态。 如要排除文件,在库根目录下创建.gitignore文件(新建文件改名为:.gitignore.)即可创建。 在其中可用:*.type !*out.type folde 阅读全文
posted @ 2018-09-22 10:28 windin 阅读(1272) 评论(0) 推荐(0) 编辑
摘要: 设置tabstop成为其它值可能会导致文件在其它地方出现错误有四种主要方法使用tabs在vim里:1.总是保持tabstop=8,设置softtabstop=4、shiftwidth=4(或3、或任何你喜欢的)并且使用noexpandtab。这样vim会使用tabs和spaces的混合体,但输入<T 阅读全文
posted @ 2018-08-02 17:35 windin 阅读(730) 评论(0) 推荐(0) 编辑
摘要: /* calculate a num y which is base x to exp n 2^n=2*2^n-1 (n is an odd) 2^n=2^(n/2)*2^(n/2) (n is an even) judge method: if:b&1 b%2==1 (b is an odd) else:!(b&1) b%2==0 (b is... 阅读全文
posted @ 2018-06-15 17:53 windin 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 定义: 完全数:所有的真因子(即除了自身以外的约数)的和,恰好等于它本身。例如:第一个完全数是6,它有约数1、2、3、6,除去它本身6外,其余3个数相加,1+2+3=6。第二个完全数是28,它有约数1、2、4、7、14、28,除去它本身28外约数相加=28。 性质: (1)所有的完全数都是三角数。例 阅读全文
posted @ 2018-06-15 17:18 windin 阅读(1482) 评论(0) 推荐(0) 编辑