java仅用循环解出 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) …… 题解列表 2023年11月30日 0 点赞 0 评论 145 浏览 评分:0.0
c代码记录之字符串前n行原样输出,后面的以空格回车分割输出 摘要: #include int main() { int n; char str[1001]; scanf("%d",&n)…… 题解列表 2023年11月30日 0 点赞 0 评论 188 浏览 评分:0.0
c++编写字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ int num=0,space=0,word=0,other=…… 题解列表 2023年11月30日 0 点赞 0 评论 196 浏览 评分:0.0
利用C++来编写求和训练 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h> using namespace std;int a,b,c;int sumOfa(int a);lo…… 题解列表 2023年11月30日 0 点赞 0 评论 111 浏览 评分:0.0
利用C++输出1000以内的所有水仙花数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int judgement(int num);int main…… 题解列表 2023年11月30日 0 点赞 0 评论 121 浏览 评分:0.0
与圆相关的计算 摘要:解题思路:注意事项:使用#include<math.h>头文件里的pow n次方时编译会显示答案错误参考代码:#include<stdio.h>int main(){ double r; doubl…… 题解列表 2023年11月30日 0 点赞 0 评论 265 浏览 评分:0.0
无需指针 无需指针 无需指针 最最最简单易懂的解题思路!!! 摘要:解题思路:根据题目要求,需要输n个学生的各项数据,且需要定义一个结构体包含学生的各项数据。那我们可以将一个学生的各项数据作为一个整体,n个学生的话就需要n个整体,所以我们就可以定义一个结构体数组,每个…… 题解列表 2023年11月30日 0 点赞 0 评论 182 浏览 评分:0.0
三个数字的排序 摘要:解题思路:根据“三个数找最大值”进行细化注意事项:参考代码:#include <stdio.h>int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c)…… 题解列表 2023年11月30日 0 点赞 0 评论 78 浏览 评分:0.0
c代码记录之选择排序--指针练习 摘要: #include int main(){ int num[10],i,j,min,middle; //建立10个长度的整型数组 …… 题解列表 2023年11月30日 0 点赞 0 评论 194 浏览 评分:0.0
计算球体积,认识EOF 摘要:解题思路:注意事项:EOF是End Of File的意思,表示文件结束,无可读取参考代码:#include<stdio.h>#include<math.h>#define PI 3.14159int …… 题解列表 2023年11月30日 0 点赞 0 评论 185 浏览 评分:0.0