题解列表

筛选

指针数组的解

摘要:#include int main(){ char *p[7]={{"Sunday"}, {"Monday"}, {"Tuesday"}, \ {"Wednesday"},……

求长方形面积

摘要:解题思路:首先,我们都知道长方形的周长和面积,周长:(a+b)*2,面积:a*b。注意事项:c:和S:要双引号参考代码:#include<iostream>using namespace std;in……

成绩评定(c++语言)

摘要:解题思路:根据题意if判断注意事项:if语句的应用;参考代码:#include<iostream>using namespace std;int main(){    int a;    cin>>a……

三个数字的排序(C++语言)

摘要:解题思路:输入a[1]至a[3],使用自带函数对输入数组进行排序注意事项:需要使用万能头文件参考代码:#include<bits/stdc++.h>//万能头文件using namespace std……

陶陶摘苹果(C++简单题解)

摘要:解题思路:用淘淘的身高加上板凳的高度,就是淘淘能够到的高度,再和苹果的高度进行判断累加,最后输出;注意事项:加上板凳的30;参考代码: #includeusing namespace std;int ……