题解列表

筛选

查找特定的值

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

输出最高分数的学生姓名

摘要:解题思路:注意事项:参考代码:#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……

电报加密;

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){    string a;   whil……

简单全面的自定义函数题解

摘要:解题思路:            这道题逻辑比较简单,就是涉及到阶乘和指数函数(一个数的n次方)。先写出这两个自定义函数,没有什么难的吧。之后就是对符号的处理了,有两种做法,第一种是判断奇偶数,来看正……