题解列表

筛选

电报加密;

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

定义宏,判断是否为闰年

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define LEAP_YEAR(y)  y%100 ==0 && y%4 ==0 && y……

输出最高分数的学生姓名

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

整数大小比较

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

查找特定的值

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

关于二维数组的初始化以及对角线性质

摘要:解题思路:先构建一个三行三列的数组arr[3][3],注意第一个3是行,第二个3是列;然后根据输入对数组进行初始化并计算对角线上各数和注意事项:在主对角线上的数据的性质:行的下标与列的下标相等    ……