题解列表
C语言训练-"水仙花数"问题1-题解
摘要:解题思路:先取出各位数,再分别立方,并用if else判断,思路很简洁。。。。新手勿喷。注意事项:自定义函数参考代码:#include<stdio.h>double power(double n,in……
用数组遍历来求平均数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum,i; int arr[10]; for(i=0;i<10;i++){ ……
二叉排序树的实现(主要语言是C,只是用了C++的引用)
摘要:```cpp
#include
#include
typedef int ElemType;
typedef struct BiNode{
ElemType data;
……
完数的判断(一般解法)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main()
{
int i,j,a[100],m,x;
int N,s;
scanf……
C语言要怎么写啊,感觉我的不太行
摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int arr[3]; for (int i = 0; i < 3; i++) sc……
1093: 字符逆序
摘要:
#include
#include
int main()
{
char arr[100] = { '\0' };
fgets(arr,100,stdin);//fgets()会把读入……
暴力列举之三个字符串的排序,暴力就完事了
摘要:解题思路:暴力列举,说实话,六种情况有点烦,要写哪个三目操作符的话我头皮发麻,直接列举三个字符串比较的结果好吧注意事项:参考代码:int main(){ int str1[100], str2[……