2760: 整型与布尔型的转换(细节) 摘要:####这样写,在编译器上能过,但提交后会显示编译错误 ```c #include int main() { int a,b; bool c; scanf("%d",&a); …… 题解列表 2023年01月01日 1 点赞 0 评论 780 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include <math.h> #include <stdio.h> int main() { double a, b, c; double x1, …… 题解列表 2022年12月31日 0 点赞 0 评论 331 浏览 评分:0.0
巧用sort函数实现从大到小的排序输出!! 摘要:解题思路:用sort函数实现数组的从小到大排序,在逆序输出。使用sort函数需要导入头文件<algorithm>注意事项:参考代码:#include<iostream>using namespace …… 题解列表 2022年12月31日 0 点赞 0 评论 539 浏览 评分:9.9
c++排序问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<algorithm>int main(){ int a[4]={0}; in…… 题解列表 2022年12月31日 0 点赞 0 评论 359 浏览 评分:0.0
1091: A+B for Input-Output Practice (VII) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int func(int x,int y); int main() { int n, j; int sum = 0;…… 题解列表 2022年12月31日 0 点赞 0 评论 396 浏览 评分:0.0
1054: 二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int func(int x); int main() { int a,n; int sum = 0; …… 题解列表 2022年12月31日 0 点赞 0 评论 280 浏览 评分:0.0
2981: 二进制分类 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ //将1到1000的十进制转换为二进制 int a[1000]; int i,j; in…… 题解列表 2022年12月31日 0 点赞 0 评论 497 浏览 评分:9.9
2976: 字符串中最长的连续出现的字符 摘要:解题思路:先定义一个数组输入字符串然后用for循环来断句然后使用for循环来判断下插下一个字符是否与前一个字符相等如果相等则计数如果不相等则退出重新计数最后来判断输出的技术最多的一项是什么然后又输出这…… 题解列表 2022年12月31日 0 点赞 0 评论 549 浏览 评分:9.9
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,sum=0; scanf("%d",&n); while(~scanf("%d",&m)) { …… 题解列表 2022年12月31日 0 点赞 0 评论 300 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,n; for(i=1;i<10;i++) { for(j=0…… 题解列表 2022年12月31日 0 点赞 0 评论 328 浏览 评分:0.0