摘要:
#include <stdio.h> int main() { int n; scanf("%d",&n); for(int i=1;i<=n;i++){ for(int j=i;j<=n;j++){ printf("%d*%d=%d",i,j,i*j); if(j!=n){ printf("\t" 阅读全文
摘要:
#include <stdio.h> #include <math.h> int main(){ double a,n; scanf("%lf %lf",&a,&n); printf("%lf",pow(a,n)); return 0; } 在编译语句的最后面加上 -lm,问题即可解决: gcc 文 阅读全文
摘要:
阅读全文
摘要:
错误描述: The process cannot access the file because it is being used by another process 解决:将读取文件的方式改成 var stream = new FileStream(fullPath, FileMode.Open 阅读全文
摘要:
Vim是从 vi 发展出来的一个文本编辑器。代码补完、编译及错误跳转等方便编程的功能特别丰富,在程序员中被广泛使用。 简单的来说, vi 是老式的字处理器,不过功能已经很齐全了,但是还是有可以进步的地方。 vim 则可以说是程序开发者的一项很好用的工具。 连 vim 的官方网站 (http://ww 阅读全文
摘要:
一,下载cmder, cmder 官网 二,解压 三,找到cmder.exe右键单击,选择以管理员身份运行(重要) 命令 cmder /register all 阅读全文
摘要:
规律:四年一闰,百年不闰。四百年再闰。 条件: 1.能被4整除而不能被100整除。(如2004 年就是闰年,1900年不是) 或 2.能被400整除.(如2000年是闰年) 简单方法判断 1)判断年份是否是闰年,只须看年份的末两位,如果末两位数能整除4,那么就是闰年,反之 就不是。 2)遇到末两位都 阅读全文