2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int isprime(int x){ if(x==1)//别忘了1不是素数 ret…… 题解列表 2018年04月04日 0 点赞 0 评论 963 浏览 评分:0.0
C二级辅导-进制转换 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>eight(int n){ if(n>=8){ eight(n/8);//先执行循环体,在执行printf,但是n并…… 题解列表 2018年04月04日 0 点赞 0 评论 860 浏览 评分:0.0
C二级辅导-温度转换 (C语言代码) 摘要:解题思路:注意事项:一定要记住,在float,或者double时,用 / 需要加.0 即:float c= 5/9; wrong; &n 题解列表 2018年04月04日 0 点赞 0 评论 682 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:void fun1(float a,float b,float c){ float x1,x2; float des=b*b-4*a*c; x1=(-b+sqrt(des…… 题解列表 2018年04月04日 0 点赞 0 评论 949 浏览 评分:0.0
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ if(b) return max(b,a%b); return a…… 题解列表 2018年04月04日 0 点赞 0 评论 616 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,i=0,a[10]; while(scanf("%d",&x) && x!=0 && i…… 题解列表 2018年04月05日 0 点赞 0 评论 661 浏览 评分:0.0
Tom数 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2018年04月05日 1 点赞 0 评论 1105 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:1.创建一个一维数组来保存string "China"2.通过scanf来获取输入3.打印这个数组的每一个字符,并在打印前+44.获得期待输出注意事项:跑出来是对的,但是平台认为是错误答案,…… 题解列表 2018年04月05日 0 点赞 0 评论 663 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:利用数组来储存数注意事项:只适用5位数参考代码:#include<stdio.h>main(){int i,m,n=0,s,k;int a[6];printf("请输入一个5位数\n");s…… 题解列表 2018年04月05日 5 点赞 0 评论 699 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 100void CopyVow(char a[]);int main(void){ char a[N]; …… 题解列表 2018年04月05日 1 点赞 0 评论 618 浏览 评分:0.0