题解列表

筛选

最简单易懂的解法{1019}

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

如何用C语言结构体解决谁拿了最多奖学金

摘要:解题思路:用结构体代表学生的信息,通过函数得到每个学生的奖学金,在进行对比。注意事项:认真即可参考代码:#include <stdio.h>//定义结构体,totalbons是每个学生的奖学金。str……

C++2784开瓶盖赢大奖题解

摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){    int a;cin >>a;    if (a>=10||a>=20)    {  ……

三个数最大值(C语言新手)

摘要:解题思路:用的if else语句嵌套注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(……

密码破译(C语言新手)

摘要:解题思路:根据ASCII码表可知,只需将它们的数值加4即可得到想要的数据注意事项:参考代码:#include <stdio.h>int main(){ char a,b,c,d,e; scanf("%……