C语言程序设计教程(第三版)课后习题8.3 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int ss(int n); int n; cin>>n; if(s…… 题解列表 2017年11月16日 0 点赞 0 评论 858 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.4 (C++代码) 摘要:解题思路:这个方法有点笨注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a[9],i; for(i=0;i<9;i++…… 题解列表 2017年11月16日 0 点赞 0 评论 890 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,y,r,i; cin>>n>>y>>r; switch(…… 题解列表 2017年11月16日 0 点赞 0 评论 930 浏览 评分:0.0
C语言训练-求PI* (C语言代码) 摘要:注意事项:题目中说当某一项的绝对值小于10-6为止,这个地方题有点坑啊,这一项并没有加入。注意这个就好了参考代码:#include<stdio.h> #include<math.h> int m…… 题解列表 2017年11月16日 0 点赞 1 评论 622 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码) 摘要:#include<stdio.h> #include<math.h> int fun(int, int); int main() { int a, n; int i; …… 题解列表 2017年11月16日 2 点赞 0 评论 1099 浏览 评分:0.0
DNA (Java代码) 摘要:解题思路:import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner …… 题解列表 2017年12月17日 3 点赞 0 评论 1184 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;printf("请输入需要输入的两个数\n");scanf("%d%d\n",&a,&b);c…… 题解列表 2017年11月17日 1 点赞 1 评论 628 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:注意换行参考代码:#include <stdio.h>int main(){ int a,b,sum; while(scanf("%d%d",&a,&b)==2) { sum=a…… 题解列表 2017年11月17日 1 点赞 0 评论 912 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:注意事项:参考代码#include <stdio.h>int main(){ int a,b,c,m,max; scanf("%d%d%d",&a,&b,&c); if(a>b) m=a; …… 题解列表 2017年11月17日 2 点赞 0 评论 923 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:给5个变量5位上的数赋值看最大位来处理不同情况注意事项:参考代码:#include<stdio.h>int main(){ int x,a,b,c,d,e,t; t=0; scanf(…… 题解列表 2017年11月17日 0 点赞 0 评论 663 浏览 评分:0.0