题解列表
输出最高分数的学生姓名
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct student{ int score; ……
定义宏,判断是否为闰年
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define LEAP_YEAR(y) y%100 ==0 && y%4 ==0 && y……
编写题解 2903: 不高兴的津津
摘要:解题思路:注意事项:max>8参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct Time{ int stime; ……
二级C语言-平均值计算
摘要:```
#include
using namespace std;
int main()
{
int arr[10], sum = 0;
for (int i = 0; ……
编写题解 2904: 谁拿了最多奖学金
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct student{ char name[20]……
1119: C语言训练-"水仙花数"问题1
摘要:```cpp
#include
using namespace std;
int main()
{
int num, a, b, c;
cin >> num;
a……
1120: C语言训练-"水仙花数"问题2
摘要:```cpp
#include
using namespace std;
int main()
{
int num, a, b, c;
for ( num = ……
简单全面的自定义函数题解
摘要:解题思路: 这道题逻辑比较简单,就是涉及到阶乘和指数函数(一个数的n次方)。先写出这两个自定义函数,没有什么难的吧。之后就是对符号的处理了,有两种做法,第一种是判断奇偶数,来看正……