题解列表

筛选

三个数字的排序

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

简单的写一下

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

与圆相关的计算

摘要:解题思路:注意事项:使用#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 #include int main() { ……

利用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=……

自定义函数处理素数——C语言;调用函数;易懂;

摘要:解题思路:   素数是除1和它本身之外没有它能除尽的数,所以使用循环与选择结构解题;注意事项:    一定注意不能在循环中使用if判断素数,否则会出现一串字母;所以定义一个新变量作为记录是否有数能被你……