04 2020 档案
摘要:#include <stdio.h> void minmax(int a[], int *min, int *max, int len); //函数声明 int main() { int b[] = {1, 2, 4, 7, 10, 15, 17, 20, 100, 90, -1, 1000, 20
阅读全文
摘要:Fibonacci series 输出斐波那契数列前30个数,每行打印5个数 #include <stdio.h> #define MAX 30 int main() { int fib[MAX] = {1,1}; for (int i=2; i<MAX; i++) { fib[i] = fib[i
阅读全文
摘要:找出一维数组中最大最小的数 #include <stdio.h> //找出一维数组中最大最小的数 int main() { int a[] = {1, 2, 4, 7, 10, 15, 17, 20, 100, 90, -1, 1000, 20001, -99}; printf("%p\n", &a
阅读全文
摘要:调用函数,计算m~n之间所有整数的和 #include <stdio.h> int sum(int a, int b) { if (a <= b) { int sum = 0, i; for (i = a; i <= b; i++) { sum += i; } return sum; } else
阅读全文
摘要:输入两整数,找出最大的数 #include <stdio.h> int max(int a, int b); int main() { int a, b; scanf("%d%d", &a, &b); printf("%d与%d中的最大数为%d\n", a, b, max(a, b)); retur
阅读全文
摘要:break下: #include <stdio.h> int main() { int x = 1, a = 0, b = 0; switch(x) { case 0: b++; break; case 1: a++; break; case 2: a++; b++; break; } printf
阅读全文
摘要:https://www.python.org/dev/peps/pep-0263/ # coding=<encoding name>
阅读全文
摘要:Python is becoming the world’s most popular coding language But its rivals are unlikely to disappear Jul 26th 2018 “I CERTAINLY didn’t set out to crea
阅读全文
摘要:方法一、调用函数 输入下面的代码并保存为factorial.c: /*计算1! + 2! + 3! + ... +100!的值*/ #include <stdio.h> #define MAX 100 double factorial(int a); //函数声明,详细代码往下看 int main(
阅读全文
摘要:terminal中,vim isPrime.c,在vim中输入下面的代码。 /* 判断一个正整数是否为素数(prime number) */ #include <stdio.h> #include <math.h> int main() { int number; int i; printf("输入
阅读全文
摘要:来源:https://groups.google.com/forum/#!msg/net.unix-wizards/8twfRPM79u0/1xlglzrWrU0J Free Unix! Starting this Thanksgiving I am going to write a complet
阅读全文
摘要:The last of the Manchus Et tu, Manchu? One hundred years on, only a few native speakers remain Asia Oct 8th 2011 edition SANJIAZI A CENTURY ago it was
阅读全文
摘要:The death of a tech genius SIR – There has been a lot of talk about the untimely death of Steve Jobs, the man who turned Apple around by designing pro
阅读全文
摘要:看个test.c中的代码: // 计算1 + 2 + 2^2 + 2^3 + 2^4 +... + 2^10的值 #include <stdio.h> #include <math.h> #define UPPER 10 #define BASE 2 int main() { int i = 0;
阅读全文
摘要:程序一: #include <stdio.h> int main() { int s = 0; for (int i = 1; i <= 10; i+=3) { s += i; } printf("s = %d\n", s); printf("i = %d\n", i); return 0; } 程
阅读全文
摘要:先来看个小程序: #include <stdio.h> int main() { double a = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117
阅读全文
摘要:Ubuntu中,首先安装unrar sudo apt install unrar 安装完后,使用 which unrar 会得到安装位置 /usr/bin/unrar 还需要安装rarfile pip3 install rarfile from rarfile import RarFile RarF
阅读全文
摘要:Ubuntu上使用的是python3, 安装使用: pip3 install <package name> 卸载使用: pip3 uninstall <package name> 查看已经安装的某个package: pip3 show <package name>
阅读全文
摘要:https://zhile.io/2018/08/25/jetbrains-license-server-crack.html
阅读全文
摘要:启动首页,右下角有Configure和Get Help,在Configure中找到Create Desktop Entry,点击设置。 接下来就可以在系统搜索栏中搜索Pycharm,来启动软件 启动后,在Docker栏目中,鼠标放到软件上,右键,add to favorites
阅读全文