题解列表

筛选

1952: 求长方形面积

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;long long a……

[编程入门]数字逆序输出

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[15];int main(){  for(int i=1;i……

【cctype字符函数库】求解字符串分类统计

摘要:解题思路:利用cctype字符函数库解决问题cctype库内函数isalnum(c); 如果参数是字母或数字,函数就返回true,否则返回falseisalpha(c); 如果参数是字母,函数返回tr……

题解 1196: 去掉空格

摘要:解题思路:注意事项:参考代码:int main(){     char a[100];     int len,i;     char end[]="End of file";     whi……

两种方法求平方和(C语言代码)

摘要:解题思路:方法一:直接数学中两数的平方和计算。注意:一个整数a的平方和不能写成a^2,而应该写成a*a;方法二:利用math库中的pow(x,y)函数,计算x的y次方。参考代码:方法一:#includ……