题解列表

筛选

整数大小比较

摘要:参考代码:#include<stdio.h> int main() {     int x,y;     scanf("%d %d",&x,&y);     if(x>y){       ……

判断是否为两位数

摘要:参考代码:#include<stdio.h> int main() {     int a;     scanf("%d",&a);     if(a>=10 && a<=99){    ……

c代码记录之多输入输出问题(important)

摘要:下方代码是把0算进比较的,系统也给过了,刚开始while漏了花括号,感谢雷兄一针见血。 后面写一个不把结尾0算进比较的代码 ```c #include int main() { i……

java仅用循环解出

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) ……

c++编写字符串分类统计

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ int num=0,space=0,word=0,other=……

利用C++来编写求和训练

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h> using namespace std;int a,b,c;int sumOfa(int a);lo……

与圆相关的计算

摘要:解题思路:注意事项:使用#include<math.h>头文件里的pow  n次方时编译会显示答案错误参考代码:#include<stdio.h>int main(){ double r; doubl……