题解列表

筛选

23.树的中序遍历 (C++代码)

解题思路:1.创建树2.中序遍历注意事项:一定要读懂题,看清楚i表示什么!!!参考代码:```cpp#include#includeusingnamespacestd;structnode{intdata;intleft;intright;};nodetree[2005];voidtravel(int

Hello, world! (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int arr[100];    int n=0;    while(scanf("%d",&arr[n]……

母牛的故事 (C语言代码)

摘要:解题思路:一年一年的走,不要去多考虑其他注意事项:新的一年,成年母牛=原成年母牛+第3年母牛,第3年母牛=第2年母牛,第2年母牛=第1年母牛第一年的母牛=成年母牛参考代码:#include<stdio……