会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
首页
新随笔
订阅
管理
上一页
1
···
326
327
328
329
330
331
332
333
334
···
341
下一页
2008年4月22日
C语言程序设计 要求掌握的例题和习题
摘要: 以下的例题和习题要求掌握。 第1章 概述 2学时 第2章 基本数据类型、运算符及表达式 2学时 习题:2.7, 2.8, 2.11, 2.12, 2.13, 2.14, 2.15 第3章 基本结构程序设计 8学时 例题: 例3.3, 例3.4, 例3.9, 例3.11, 例3.12, 例3.14, 例3...
阅读全文
posted @ 2008-04-22 22:39 emanlee
阅读(669)
评论(0)
推荐(0)
2008年4月21日
C语言程序设计 课程实施细则
摘要: C语言程序设计-课程实施细则 课程学时:36+20教材:《C语言程序设计教程》 西安交通大学出版社 张毅坤 等编著实验指导书: 《C语言程序设计教程学习指南与实验指导》 西安交通大学出版社 张毅坤 等编著金花校区东门口书店有售。第1章 概述 2学时1.1程序与程序设计语言1.2C程序设计语言入门1.3C语言的特点 本章重点讲解C程序的基本组成和程序编辑、编译、连接、执行的过程,其余内容可以作为自...
阅读全文
posted @ 2008-04-21 08:43 emanlee
阅读(654)
评论(0)
推荐(0)
2008年4月19日
C语言程序设计 练习题参考答案 第六章 (1) 结构体 综合练习
摘要: /* 6.9 10个学生,每个学生3门课程成绩,求平均分及前五名 */ #include "stdio.h"#include "conio.h"#define N 6 struct student /* 定义结构体数据类型 */{ int num; char name[10]; int score[3]; /* 不能使用float */ float average;}; voi...
阅读全文
posted @ 2008-04-19 20:45 emanlee
阅读(3150)
评论(1)
推荐(0)
C语言程序设计 练习题参考答案 第三章 (3) 循环结构
摘要: /* 3.9 求派的值*/ #include "stdio.h" void main() { int n; double sum=0; for(n=1;n void main() { double i=1, s=1.0, t=1.0; do { t=t*(-1)*((2*i-1)/(2*i+1)); s=s+t; i++; }while (i void...
阅读全文
posted @ 2008-04-19 20:00 emanlee
阅读(4300)
评论(0)
推荐(0)
C语言程序设计 练习题参考答案 第三章 (2) 选择结构
摘要: /* 3.6 求3个数中最大值。类似于例 1.2*/ #include void main( ) { int a, b, c, max; printf("\n 请输入3个整数,整数以空格分隔:\n"); scanf("%d%d%d",&a,&b,&c); if(a>b) max=a; else max=b; if(max void ...
阅读全文
posted @ 2008-04-19 19:58 emanlee
阅读(2218)
评论(0)
推荐(0)
C语言程序设计 练习题参考答案 第五章 (2) 递归函数
摘要: /* 5.10 编写函数,求Fibonacci数列的第n项 */ #include "stdio.h"int fibonacci(int n); void main(){ int n; printf("求Fibonacci数列的第n项,请输入n\n"); scanf("%d", &n); /* VC6中n要小于 ? */ printf("Fibonacci数列的第%d项为...
阅读全文
posted @ 2008-04-19 19:39 emanlee
阅读(2479)
评论(0)
推荐(0)
C语言程序设计 练习题参考答案 第五章 (1) 函数定义调用
摘要: /* 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
阅读(5891)
评论(0)
推荐(0)
2008年4月18日
C语言程序设计 C语言吧问题资料大全
摘要: ★本吧推荐的几个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
阅读(1473)
评论(1)
推荐(0)
2008年4月17日
C语言程序设计 练习题参考答案 第四章 (3) 字符数组
摘要: /* 例 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
阅读(1841)
评论(0)
推荐(0)
C语言程序设计 练习题参考答案 第四章 (2) 二维数组
摘要: /* 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
阅读(2822)
评论(0)
推荐(0)
上一页
1
···
326
327
328
329
330
331
332
333
334
···
341
下一页