题解列表

筛选

指针数组法(直接翻译题意)

摘要:解题思路:将题干中出现的数字的英文单词对应储存在数组中,再对应输出注意事项:参考代码:#include<stdio.h>int main(){ char *a[60]={"zero","one","t……

3种方法教你求最大值-C++语言

摘要:> ***解题思路:设置变量 第一种:使用if条件判断语句 第二种:引入布尔常量 第三种:使用三目运算符【~~划重点~~】* **参考代码:第一种:使用if条件判断语句 注:这是初学者最常……

1093: 字符逆序

摘要:只需将字符数组倒过来输出就行了 ```cpp #include #include using namespace std; int main() { char ch[101];……

1095: The 3n + 1 problem

摘要:```cpp #include #include using namespace std; int fun(int num) { int count=1; while(n……

1309: 表达式计算3

摘要:```cpp #include #include #include using namespace std; char ss1[2]={'+','-'},ss2[2]={'*','/'},s……