会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
windin的小屋
欢迎来到一个菜鸟的博客,在这里分享我遇到的问题和解决过程
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
2021年2月2日
C语言递归输入输出数字
摘要: #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
阅读(410)
评论(0)
推荐(0)
2021年1月15日
C# DateTime 时间转换与时间戳
摘要: 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
阅读(8131)
评论(0)
推荐(0)
2021年1月3日
git克隆库中部分文件
摘要: 创建空仓库:git init [repo]添加远程库地址:git remote add origin [url]设置分散检出配置项为真:git config core.sparsecheckout true输入要克隆的部分文件路径地址(相对于根路径)到文件:echo "path/" >> .git/
阅读全文
posted @ 2021-01-03 17:52 windin
阅读(327)
评论(0)
推荐(0)
2018年9月22日
初学git,初始化库|添加文件ignore|提交方法
摘要: 1.初始化git仓库: 进入任意目录,右键选择:Git Bash Here,输入命令:git status 查看当前git库的状态。 如要排除文件,在库根目录下创建.gitignore文件(新建文件改名为:.gitignore.)即可创建。 在其中可用:*.type !*out.type folde
阅读全文
posted @ 2018-09-22 10:28 windin
阅读(1401)
评论(0)
推荐(0)
2018年8月2日
vim中制表符tabstop用法
摘要: 设置tabstop成为其它值可能会导致文件在其它地方出现错误有四种主要方法使用tabs在vim里:1.总是保持tabstop=8,设置softtabstop=4、shiftwidth=4(或3、或任何你喜欢的)并且使用noexpandtab。这样vim会使用tabs和spaces的混合体,但输入<T
阅读全文
posted @ 2018-08-02 17:35 windin
阅读(792)
评论(0)
推荐(0)
2018年6月15日
快速幂(递归,循环)
摘要: /* 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
阅读(352)
评论(0)
推荐(0)
找出n之内的完全数, 并输出其因子
摘要: 定义: 完全数:所有的真因子(即除了自身以外的约数)的和,恰好等于它本身。例如:第一个完全数是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
阅读(1580)
评论(0)
推荐(0)
上一页
1
2
3
公告