题解列表

筛选

完数的判断(嵌套循环)

摘要:解题思路: 这题不好做,至少对于我( ´・・)ノ(._.`),想到了用数组来存完数的因子,那就好多了 注意事项: 参考代码: ```c #include int main() {……

求三个数最大值

摘要:解题思路:假设其中一个数为最大值,分别与另外两个数做比较。参考代码:#include<stdio.h>int main(){ int a,b,c; int m = 0;    scanf("%d %d……

无需结构体的做法(C语言)

#include#includeintmain(){intnum;//投票人数(数据个数)charcolor[1000][20];//所有人投票的颜色结果记录在这里charsort[1000][20];//将投票结果按颜色分类之后记录在这里inta=0;//该变量用来计种类个数intsort_num[

最高的分数

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     int max = 0;     int n = 0;     scanf("%d",&n……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h> typedef struct num{     int real;     int imag;  ……

1113: C语言考试练习题_保留字母

##题目1113:C语言考试练习题_保留字母**解题思路:输入一个字符串,一个个判断是否为字母,如果符合条件就输出**```cpp#includeusingnamespacestd;intmain(){chara[1000];cin>>a;intn=strlen(a);for(inti=0;i='a'

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct student{    int id;    int score;  ……