题解列表

筛选

递归逆序输出字符串

摘要:参考代码:#include"stdio.h" #include"string.h" void fun(char *str,int len){ if(len<0) return ; pr……

递归 数字逆序输出

摘要: 参考代码:#include"stdio.h" typedef int Arr[111]; void fun (int *a,int len){  if(len<0)  return ; ……

用结构体求解

摘要:解题思路:注意事项:参考代码:#include<stdio.h>//#define NUM 2typedef struct {     char number[10];     char name[1……

通俗易懂等差数列题解

摘要:解题思路:                1、刚开始看这个题的确有点被吓到,仔细一看不就是等差数列吗,小意思。任何一个整数m的立方都可以写成m个连续奇数之和用通项公式来表示:             ……

字符逆序C++实现

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){    string s;    get……

有趣的排序题

摘要:解题思路:                思路1、可以使用十大经典排序算法中的任意一个,本题用的是冒泡排序。题目要求从大到小输出,那么就把冒泡算法里面的两个数互换的代码改一下,就可以了,把大的数放左边……

求PI*(简单C++)

摘要:#include<iostream> #include<cmath> #include<iomanip> using namespace std; int main(){     doubl……