优质题解 去掉空格(C语言 精简!) 摘要:解题思路: 利用gets()返回值(非0为真)作为while循环条件解决多行输出问题利用指针变量p对字符串进行遍历,到\0停止遍历注意事项: *++p!='\0' 是先执行++…… 题解列表 2023年07月30日 0 点赞 3 评论 1728 浏览 评分:8.3
1113: C语言考试练习题_保留字母 摘要:##题目1113: C语言考试练习题_保留字母 **解题思路:输入一个字符串,一个个判断是否为字母,如果符合条件就输出** ```cpp #include using namespace st…… 题解列表 2023年07月30日 0 点赞 0 评论 269 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h> typedef struct num{ int real; int imag; …… 题解列表 2023年07月30日 0 点赞 0 评论 285 浏览 评分:0.0
计算素数和 摘要:解题思路:很简单按照题目要求即可注意事项:如果用暴力要特判1参考代码:#include<iostream> using namespace std; int m,n; int sum=0; b…… 题解列表 2023年07月30日 0 点赞 0 评论 225 浏览 评分:9.9
报数问题(数组表示链表) 摘要:#include<iostream> #include<string> using namespace std; const int N=300; string s; //…… 题解列表 2023年07月30日 0 点赞 0 评论 252 浏览 评分:9.9
蓝桥杯算法训练VIP-数的统计 C++ map 摘要:# map 有序容器 ```c++ #include #include #include #include using namespace std; const int N = 1e5+…… 题解列表 2023年07月30日 0 点赞 0 评论 376 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值-题解(C语言代码)在VS验证过 摘要:解题思路:用常规for使得一组数输入在一行内注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>void qiuhe(int* p, …… 题解列表 2023年07月30日 0 点赞 0 评论 303 浏览 评分:0.0
最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int max = 0; int n = 0; scanf("%d",&n…… 题解列表 2023年07月30日 0 点赞 0 评论 300 浏览 评分:0.0
无需结构体的做法(C语言) 摘要: #include #include int main() { int num;//投票人数(数据个数) char color[1000][…… 题解列表 2023年07月30日 0 点赞 0 评论 315 浏览 评分:0.0
求三个数最大值 摘要:解题思路:假设其中一个数为最大值,分别与另外两个数做比较。参考代码:#include<stdio.h>int main(){ int a,b,c; int m = 0; scanf("%d %d…… 题解列表 2023年07月30日 0 点赞 0 评论 301 浏览 评分:0.0