上一页 1 ··· 312 313 314 315 316 317 318 319 320 ··· 329 下一页
摘要: 2008 C语言 笔试考试,试题样卷 http://202.200.112.204/jingpin_c/XiTiKu/BiShiYangJuan.htm 注: (1)其中参考答案不一定正确(部分从网上或习题书上搜集的)。 (2)出题教师可能会参考此题库,但不限于此题库。 阅读全文
posted @ 2008-05-20 09:30 emanlee 阅读(1629) 评论(1) 推荐(0) 编辑
摘要: /* 8.8从文件ex88_1.txt中取出成绩,排序后,按降序存放EX88_2.TXT中 */ #include "stdio.h" #define N 10 struct student { int num; char name[20]; int score[3]; /*不能使用float*/ float average; }; void sort(struct stude... 阅读全文
posted @ 2008-05-18 20:20 emanlee 阅读(1366) 评论(2) 推荐(0) 编辑
摘要: /* 8.5 从键盘输入一行字符,将其中小写字母转换为大写字母 */ #include "stdio.h" void main() { FILE *fp; char ch; if((fp=fopen("c:\\ex85.txt","w"))==NULL) { printf("不能创建文件c:\\ex85.txt"); exit(1);... 阅读全文
posted @ 2008-05-18 20:20 emanlee 阅读(1617) 评论(0) 推荐(0) 编辑
摘要: 文件操作函数 C语言 (FILE fputc fgetc fputs fgets fscanf fprintf) 在ANSI C中,对文件的操作分为两种方式,即流式文件操作和I/O文件操作,下面就分别介绍之。 一、流式文件操作 这种方式的文件操作有一个重要的结构FILE,FILE在stdio.h中定义如下: typedef struct { int level; /* fill/empty ... 阅读全文
posted @ 2008-05-18 20:18 emanlee 阅读(6178) 评论(0) 推荐(0) 编辑
摘要: Web Profile Builder for Web Application Projects Files can be downloaded from the Web Profile Builder project page. If you use Web Application Projects, you have probably run into the issue of not b... 阅读全文
posted @ 2008-05-12 13:15 emanlee 阅读(763) 评论(0) 推荐(0) 编辑
摘要: C运算符的优先级与结合 优先级 运算符 含义 参与运算对象的数目 ... 阅读全文
posted @ 2008-05-12 09:08 emanlee 阅读(4690) 评论(0) 推荐(0) 编辑
摘要: 美国标准信息交换标准码 ( American Standard Code for Information Interchange, ASCII ) 在计算机中,所有的数据在存储和运算时都要使用二进制数表示(因为计算机比较傻,只有0和1两位数的二进制比较适合于它使用),同样的,象a、b、c、d 这样的 阅读全文
posted @ 2008-05-12 09:01 emanlee 阅读(2496) 评论(1) 推荐(0) 编辑
摘要: /* 例7.19 输入N个学生学号,姓名,成绩,并按成绩降序排列,并输出 p指向结构体变量s1 , 则 s1.成员名,(*p).成员名,p->成员名 等价。 本题采用自定义函数较为合适 Author: emanlee https://www.cnblogs.com/emanlee/ Date: 20 阅读全文
posted @ 2008-05-12 08:53 emanlee 阅读(2426) 评论(0) 推荐(0) 编辑
摘要: /* 7.16 实现测试字符串长度函数strlen() */ #include "stdio.h" int strlen(char *p); void main() { char s1[20]="s1s2s3s4"; char *p=s1; printf("s1的长度: %d\n",strlen(s1)); printf("s1的长度: %d\n",strlen... 阅读全文
posted @ 2008-05-12 08:27 emanlee 阅读(1455) 评论(0) 推荐(0) 编辑
摘要: jscalendar-1.0中文解决方法 (1)jscalendar-1.0不支持中文 是由于没有设置每周的开始日期 修改方法是在lang目录中的文件calendar-cn_utf8.js(或cn_utf8.js,calendar-zh.js)加上Calendar._FD = 0; 代码片段如下: // short day names Calendar._SDN = new Array ("\u... 阅读全文
posted @ 2008-05-11 08:48 emanlee 阅读(1618) 评论(1) 推荐(0) 编辑
上一页 1 ··· 312 313 314 315 316 317 318 319 320 ··· 329 下一页