2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路以及注意事项:本题主要以math头文件里面的各种函数的应用为主。fabs() 绝对值函数。sqrt()平方根函数。pow()幂函数。实例代码:#include"stdio.h" #inclu…… 题解列表 2017年06月14日 0 点赞 1 评论 753 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要://形参的类型别写错了#include <stdio.h>#include<math.h>double fact(int n){ double a = 1.0; for(int i=1;i…… 题解列表 2017年06月14日 0 点赞 0 评论 1218 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.1 (C语言代码) 摘要:#include<stdio.h>int main(){ int s, i,a=0,n; scanf("%d", &n); for (i = 2; i <= n; i++) { for (s = 2…… 题解列表 2017年06月14日 3 点赞 1 评论 1020 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:#include <stdio.h>#include<math.h>int main(){ int a[10]; for (int i = 0; i < 10; i++) { …… 题解列表 2017年06月14日 1 点赞 0 评论 986 浏览 评分:0.0
C二级辅导-统计字符 (C语言代码) 摘要:解题思路以及注意事项:由于需要接收空格字符,所以建议使用gets()函数,scanf()函数接收到空格就结束了,所以不建议使用scanf.注意初始化的问题。实例代码:#include"stdio.h"…… 题解列表 2017年06月14日 0 点赞 0 评论 1156 浏览 评分:0.0
C二级辅导-进制转换 (C语言代码) 摘要:解题思路以及注意事项:printf函数输出本事就可以实现进制转换。%o为八进制,%d为十进制,%x为十六进制。不要忘记了&。实例代码:#include"stdio.h" int main() { …… 题解列表 2017年06月14日 20 点赞 4 评论 2447 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题6.9 (C语言代码) 摘要:#include<stdio.h>int main(){ int m, n, i; float sum=1000, gao; scanf("%d %d", &m, &n); gao = m; for …… 题解列表 2017年06月14日 0 点赞 2 评论 477 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:#include<stdio.h> int isprime(int x){ int flag = 0; for (int i = 2; i <= x; i++) //不考虑1,直接考…… 题解列表 2017年06月14日 2 点赞 0 评论 1457 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 摘要:#include <stdio.h>#include <stdlib.h>#include <string.h>int *fun(char *a){ int z=0,x=0,c=0,v=0; int …… 题解列表 2017年06月14日 0 点赞 0 评论 1315 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.8 (C语言代码) 摘要:#include<stdio.h> #include<malloc.h>#include<stdlib.h>struct student{ int num; int score; s…… 题解列表 2017年06月13日 1 点赞 1 评论 797 浏览 评分:0.0