上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页

2019年10月18日

摘要: c语言的FILE(大写),其类型声明,在stdio.h中 1 struct _iobuf { 2 char *_ptr; 3 int _cnt; 4 char *_base; 5 int _flag; 6 int _file; 7 int _charbuf; 8 int _bufsiz; 9 cha 阅读全文

posted @ 2019-10-18 15:47 金色的省略号 阅读(842) 评论(0) 推荐(0) 编辑

2019年10月16日

摘要: 任何新的东西,都是建立在痛苦的基础之上的,坚持才能成功。 一、安装Ubuntu一定要自己分区 安装Ubuntu系统,浪费了不少时间,问题出在安装时候的三个选项上, 为什么会有三个选项?因为硬盘上本来就有系统。 1.选项1,是否选择与windows共存,当然不选了,想装Ubuntu的吗。 2.选项2, 阅读全文

posted @ 2019-10-16 16:17 金色的省略号 阅读(175) 评论(0) 推荐(0) 编辑

2019年10月15日

摘要: 写在前面的话:玩Ubuntu要小心,做好数据备份 在学习西北工业大学,c程序设计mooc课程的时候,老师要求安装Ubuntu操作系统, 之前看到过这个系统的名字,不明觉厉。 清华大学开源软件镜像站 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ 一 阅读全文

posted @ 2019-10-15 16:10 金色的省略号 阅读(256) 评论(0) 推荐(0) 编辑

2019年10月13日

摘要: 1、投票计数 有三个候选人:TOM,ROSE,KATE,有20人投票选取一人做组长,编程完成投票计数功能。输出人名和相应的得票数。 2、拼音读数 读入一个整数,范围是[-100000,100000],然后,用汉语拼音将这个整数的每一位输出出来。如输入1234,则输出:yi er san si 注意, 阅读全文

posted @ 2019-10-13 13:09 金色的省略号 阅读(444) 评论(0) 推荐(0) 编辑

摘要: 1、矩阵的鞍点 1 #include <stdio.h> 2 #define N 32 3 int main() 4 { 5 int m,n; 6 scanf("%d %d",&m,&n); 7 8 int a[N][N]={0}; 9 for(int i=0;i<m;++i){ 10 for(in 阅读全文

posted @ 2019-10-13 12:38 金色的省略号 阅读(4258) 评论(0) 推荐(0) 编辑

摘要: 1、四则运算 #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #define eps 1e-6 int main() { srand(time(NULL)); int a,b; char op[5] 阅读全文

posted @ 2019-10-13 00:17 金色的省略号 阅读(246) 评论(0) 推荐(0) 编辑

2019年10月11日

摘要: 1、Double 2、Houseboat 3、Sum of Consecutive 4、Specialized Number 5、Favorite Number 6、Sticks 7、Checksum algorithm 8、Scoring 9、Redistribute Wealth 10、Dext 阅读全文

posted @ 2019-10-11 23:53 金色的省略号 阅读(455) 评论(0) 推荐(0) 编辑

摘要: 1 #include 2 #define eps 1e-6 3 4 double fsqrt(double a) 5 { 6 double x=a,t; 7 /* 迭代x*/ 8 do{ 9 t=x; 10 x = 0.5*(x+a/x); 11 }while (t-x>eps... 阅读全文

posted @ 2019-10-11 10:36 金色的省略号 阅读(315) 评论(0) 推荐(0) 编辑

2019年10月10日

摘要: 1、行程编码压缩算法 1 #include<stdio.h> 2 #include <string.h> 3 #define N 100 4 5 int main() 6 { 7 char s[N] = "", t[N] = "", ch; 8 gets(s); 9 10 int count = 0 阅读全文

posted @ 2019-10-10 17:09 金色的省略号 阅读(550) 评论(0) 推荐(0) 编辑

摘要: 1、小型数据库 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 100 4 5 struct student{ 6 int no; 7 char name[12]; 8 int score; 9 }s[N]; 10 11 int main 阅读全文

posted @ 2019-10-10 14:37 金色的省略号 阅读(570) 评论(0) 推荐(0) 编辑

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页