C语言程序设计教程(第三版)课后习题11.5 (C++代码)很简单的 摘要:解题思路:利用结构体就做出来了注意事项:无参考代码:#include<iostream>using namespace std;struct student{ char no[10]; char …… 题解列表 2019年03月31日 1 点赞 0 评论 1136 浏览 评分:6.0
C语言程序设计教程(第三版)课后习题5.4 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<string> using namespace std; int mai…… 题解列表 2019年03月31日 0 点赞 0 评论 866 浏览 评分:6.0
平方和与立方和 (C++代码)水 摘要:解题思路:又水了一题,我好像错过了愚人节彩蛋参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0…… 题解列表 2019年04月02日 0 点赞 0 评论 861 浏览 评分:6.0
22.获取树的规模 (C++代码) 摘要:解题思路: 定义好树节点,内容应当使可以找到自己的孩子,父亲,以及孩子的个数和数值 创建树 如果是根节点 如果节点存在,直接修改相应的父亲值 不存在就创建节点 不是根节点 如果存在,就直…… 题解列表 2019年04月03日 1 点赞 0 评论 1032 浏览 评分:6.0
蓝桥杯历届试题-蚂蚁感冒 (C/C++语言代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cmath> using namespace std; int main() { int n; …… 题解列表 2019年04月08日 10 点赞 0 评论 1085 浏览 评分:6.0
求素数(质数) 摘要:参考代码:#include <stdio.h>int main(){ int N,count; scanf("%d",&N); for(int i=2;i<=N;i++) …… 题解列表 2019年04月10日 1 点赞 0 评论 1192 浏览 评分:6.0
考试评级 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int x;scanf("%d", &x);switch(x/10){case 10:case 9: case 8…… 题解列表 2019年04月12日 0 点赞 0 评论 1142 浏览 评分:6.0
蓝桥杯算法训练VIP-判定字符位置 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define N 1000int main(){ char a[N]; int i; scanf(…… 题解列表 2019年04月14日 1 点赞 1 评论 1523 浏览 评分:6.0
发工资咯 (C语言代码) 摘要:解题思路:每个人逐个拆分 累加张数注意事项:参考代码:#include<stdio.h>int a[6]={1,2,5,10,50,100};//分别是各个面额int b[102];//储存每个员工工…… 题解列表 2019年04月15日 0 点赞 0 评论 759 浏览 评分:6.0
C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:先判断给出的数是否为偶数,如果不是偶数就减一变成偶数。奇数对本题无影响,所以减一也没关系。然后利用循环进行减2相加,直到减到N等于2为止跳出循环输出结果。注意事项:VC6编译器再用for循环…… 题解列表 2019年04月16日 1 点赞 0 评论 773 浏览 评分:6.0