题解列表

筛选

c++ 边乘边加

摘要:#include<iostream> using namespace std; int a[1000],b[1000]; void cheng(int a[],int c) { int j……

三个数字的排序

摘要:解题思路:根据“三个数找最大值”进行细化注意事项:参考代码:#include <stdio.h>int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c)……

简单的写一下

解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);doublea=sc.nextDouble();if(a<

无需指针 无需指针 无需指针 最最最简单易懂的解题思路!!!

解题思路:根据题目要求,需要输n个学生的各项数据,且需要定义一个结构体包含学生的各项数据。那我们可以将一个学生的各项数据作为一个整体,n个学生的话就需要n个整体,所以我们就可以定义一个结构体数组,每个数组元素就是一个结构体,通过n次循环将n个学生的数据输入相应的结构体,

与圆相关的计算

摘要:解题思路:注意事项:使用#include<math.h>头文件里的pow  n次方时编译会显示答案错误参考代码:#include<stdio.h>int main(){ double r; doubl……

简单的写一下

摘要:解题思路:注意事项:参考代码: import java.util.Scanner; public class Main {    public static void main(String[] ar……

c代码记录之验证字串

1.空串是所有字符串的子串,但这题好像不验证这个2.gets不通过,scanf能通过#include#includeintmain(){charstr1[201],str2[201],str_chang[201],str_duan[201];intn_str1,

利用C++来编写求和训练

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h> using namespace std;int a,b,c;int sumOfa(int a);lo……

c++编写字符串分类统计

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ int num=0,space=0,word=0,other=……