题解列表

筛选

结构体之时间设计

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int judge(int n) {     if (n % 4 == 0 && ……

结构体之成绩记录

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main() { struct student { string Xue……

术式反转 赫

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#define maxsize 100typedef struct{    double sco……

行程长度编码

摘要:参考代码: ```c #include #include #include int main() { char a[1000]; gets(a); int len=strlen……

c语言代码解决问题

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

自定义函数之整数处理

摘要:解题思路:用两个变量t1,t2复制数组第一个数和最后一个数,分别以他们为标兵,进行比较,再用新变量n1,n2复制符合条件的下标,再用a[n1/n2]=t1/t2来把对应的原值复制到下标为n1/n2的位……

判断能否被3、5、7整除

摘要:解题思路:题目说如果能被整除,则从小到大输出能被出的数,那就从到到大,用if判断就好了注意事项:参考代码:#include<stdio.h> int main() { int a; sca……

自定义函数之字符串反转

摘要:解题思路:从字符串最后一位数开始输出即可注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    int i;    char a[100……

计算分数加减表达式的值(C语言)

摘要:解题思路:从题目可以看出规律分母为奇数加,偶数则减注意事项:参考代码:#include<stdio.h> double m(int n) {     double sum=0;     for……