题解列表
有趣的跳跃(c语言简易方法)
摘要:解题思路:注意事项:用到多个数组参考代码:#include<stdio.h>int main(){ int a[3000],b[3000],n,d; scanf("%d",&n); ……
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……