C语言程序设计教程(第三版)课后习题5.4 (C++代码) 摘要:解题思路:注意事项:参考代码:#include "iostream"using namespace std;int main(){ int a,b,c,max; cin>>a>>b>>c; max=(…… 题解列表 2018年10月25日 0 点赞 0 评论 619 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C++代码) 摘要:解题思路:注意事项:参考代码:#include "iostream"using namespace std;int main(){ char a1[10]; cin>>a1; int n=strlen…… 题解列表 2018年10月25日 0 点赞 0 评论 822 浏览 评分:0.0
C二级辅导-等差数列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j=2,sum=0,n; scanf("%d",&n); for(i=1;i<=n;i+…… 题解列表 2018年10月25日 0 点赞 0 评论 642 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:根据公式注意事项:注意输入出参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<1) …… 题解列表 2018年10月25日 0 点赞 0 评论 610 浏览 评分:0.0
蓝桥杯历届试题-回文数字 (Java代码) 摘要:解题思路:安排注意事项:你看就完了参考代码:import java.util.Scanner;public class Main { public static void main(String…… 题解列表 2018年10月25日 1 点赞 0 评论 1004 浏览 评分:2.0
母牛的故事 (C++代码) 摘要:解题思路:先手动计算每年的牛的数量:1:12:23:34:45:66:97:13根据题意找规律可得:本年度可生崽的牛,均为三年前就存在的牛因此:本年的牛数=去年牛的数量+三年前牛的数量注意事项:参考代…… 题解列表 2018年10月25日 1 点赞 0 评论 709 浏览 评分:6.0
迷宫问题 (C++代码)-----Momoc 摘要:解题思路:用广度优先搜索从起点开始按层次搜索,当到达终点时结束搜索并输出步数,同时当无法到达终点时输出-1。注意事项:参考代码:#include <bits/stdc++.h> using na…… 题解列表 2018年10月25日 1 点赞 0 评论 712 浏览 评分:0.0
C二级辅导-阶乘数列 (C语言代码) 摘要:#include "stdafx.h"double f(int n){ if (n == 1) return 1; else return n*f(…… 题解列表 2018年10月25日 0 点赞 0 评论 452 浏览 评分:0.0
C二级辅导-统计字符 (C语言代码) 摘要:#include "stdafx.h"#include "string.h"int main(){ char a[100] = {0}; int len, i, c_letters = 0, c_bl…… 题解列表 2018年10月25日 0 点赞 0 评论 561 浏览 评分:0.0
C二级辅导-计负均正 (C语言代码) 摘要:#include "stdafx.h"int main(){ int i,n,c1=0,c2=0,sum=0; double avg; for (i = 0; i < 20; i++) { scan…… 题解列表 2018年10月25日 0 点赞 0 评论 485 浏览 评分:0.0