- 博客(3)
- 收藏
- 关注
原创 素数;最大公约数和最小公倍数;“冒泡”问题
1.100~200间的素数 #include int main() { int i, n, m = 0; for(i = 100; i { for(n = 2; n { if(i % n == 0) break; if(n >= i-1) { printf("%d ",i); m++;
2017-01-23 20:55:04
198
原创 Malkfile改模版
Malkfile改模版 主程序 [root@localhost 0118]# cp -r/mnt/hgfs/shared/client/ ./ [root@localhost 0118]# ls add.c client divi.c main.c mul.c sub.c [root@localhost 0118]# cd client [root@localhost clien
2017-01-22 20:57:10
178
原创 静态库的创建和编写makefile
静态库的创建 [root@localhost 2017]# gcc -c add.c sub.c mul.c divi.c [root@localhost 2017]# ar rcs libzong.a add.o sub.o mul.o divi.o [root@localhost 2017]# gcc -o main main.c -L. -lzong [root@localhost
2017-01-19 20:07:21
245
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅