简单的a+b (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum,a,b; printf("输入两个整数:\n"); scanf("%d%d",&a,&b)…… 题解列表 2017年11月24日 0 点赞 0 评论 1019 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char str[]="Hello world!"; f…… 题解列表 2017年11月24日 0 点赞 0 评论 758 浏览 评分:0.0
数字统计 (C语言代码) 摘要:#include <stdio.h> int main() { int n; int a[10] = {0}; int i; scanf("%d", &n)…… 题解列表 2017年11月24日 4 点赞 1 评论 1314 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.4 (C语言代码)(正序逆序都可以) 摘要:解题思路:用if来判断正序还是逆序,两种情况只需要修改中间符号即可,用的依然是找到i的位置然后后移的方法注意事项:注意数组的下标,和循环的条件参考代码:#include<stdio.h> int m…… 题解列表 2017年11月24日 1 点赞 0 评论 1423 浏览 评分:0.0
哥德巴赫曾猜测 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> int a[100]={2,3,5,7}; using namespace std; int…… 题解列表 2018年03月25日 0 点赞 0 评论 1322 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){int a[55],x,y;if(x=1)a[x]=1;if(x=2)a[x]=2;if(x=3)a[x]=3;for(x…… 题解列表 2017年11月24日 2 点赞 0 评论 1254 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.5 (C语言代码)(简单版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a[10],i,j,x; for(i=0;i<=9;i++) { …… 题解列表 2017年11月24日 1 点赞 0 评论 1064 浏览 评分:0.0
Pascal三角 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main() { int n; …… 题解列表 2018年03月25日 0 点赞 0 评论 1601 浏览 评分:0.0
分糖果 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2017年11月24日 0 点赞 0 评论 1295 浏览 评分:0.0
C语言训练-求PI* (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(void) { double i; double an; double sn = …… 题解列表 2017年11月24日 0 点赞 1 评论 766 浏览 评分:0.0