上一页 1 ··· 328 329 330 331 332 333 334 335 336 ··· 342 下一页
摘要: /* 5.6 编写函数,输出所有水仙花数 */ #include "stdio.h"int isdaffodil( int n ) ; /* isdaffodil函数原型声明 */ void main(){ int i; for( i=100; i999 || n<100) return 0; /* it is not a daffodil */ units=n%10... 阅读全文
posted @ 2008-04-19 18:05 emanlee 阅读(5894) 评论(0) 推荐(0)
摘要: ★本吧推荐的几个C编译器:http://post.baidu.com/f?kz=2769360 ◆本吧代码格式编辑器:http://post.baidu.com/f?kz=9364381 ◆二进制文件与文本文件的转换:http://post.baidu.com/f?kz=21576218 ◆本吧代码中显示?:http://post.baidu.com/f?kz=50... 阅读全文
posted @ 2008-04-18 23:26 emanlee 阅读(1474) 评论(1) 推荐(0)
摘要: /* 例 4.19 电文加密,每个字母转换为字母表中循环右移的第三个字母, 解法一 */ #include "stdio.h"void main(){ char s[256]; int i=0; printf("请输入一行字符,之后按回车键\n"); gets(s); while(s[i]!=0) { if(s[i]>=65 && s[i]=88 && s[i]... 阅读全文
posted @ 2008-04-17 16:58 emanlee 阅读(1842) 评论(0) 推荐(0)
摘要: /* 4.16 5*5矩阵中每行的绝对值最大值,与同行对角线交换*/ #include "stdio.h" #include "math.h"void main(){ int a[5][5]={{1,2,3,4,-5},{3,5,-2,4,2},{4,1,2,3,-2}, {1,3,-2,4,6},{2,2,0,7,4}} ; int i,k,max,s... 阅读全文
posted @ 2008-04-17 16:15 emanlee 阅读(2831) 评论(0) 推荐(0)
摘要: /* 4.11 fibonacci数列,前15项 1,1,2,3,5,。。。。。*/ #include "stdio.h"void main(){ int f[15]={1,1}, i; for(i=2;i=x) { /* 移动 */ for(k=count;k>i;k--) a[k... 阅读全文
posted @ 2008-04-15 23:06 emanlee 阅读(3411) 评论(0) 推荐(0)
摘要: /* 3.4 求两点之间的距离,(x1,x2) (y1,y2) 。类似于例3.9 */ #include "stdio.h" #include "math.h" void main() { float x1,y1,x2,y2; double distance; printf("请输入两点(x1,x2) (y1,y2)\n输入示例: 1 1 2 2 即指(1,1)(2,... 阅读全文
posted @ 2008-04-12 22:59 emanlee 阅读(2785) 评论(1) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2008-04-05 11:39 emanlee 阅读(18) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2008-04-05 11:23 emanlee 阅读(13) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2008-04-05 11:08 emanlee 阅读(20) 评论(1) 推荐(0)
摘要: 实验报告上的信息请填写完整 实验报告首页内容 课程:C语言程序设计。(不要填写C语言,C程序设计,C) 专业班号: ***。(自然班) 组别:填写序号。(分配的编号1,2,3,..) 姓名:填写姓名。 学号:填写学号。 同组者:“无”。 第几页共几页请别忘记填写(所有页都需要填写)。 实验日期:上机的日期。 交报告日期:写下周上机日期。 报告退发:不填写。 实验报告的内容(参考实验指导书最后一... 阅读全文
posted @ 2008-03-22 11:41 emanlee 阅读(2347) 评论(0) 推荐(0)
上一页 1 ··· 328 329 330 331 332 333 334 335 336 ··· 342 下一页