宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAP(y) ((y%4==0&&y%100!=0)||(y%400==0))?L:Nint main(){…… 题解列表 2023年02月01日 0 点赞 0 评论 493 浏览 评分:0.0
字符串编码 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<string>using namespace std;int main() { string s; cin >> …… 题解列表 2023年02月01日 0 点赞 0 评论 551 浏览 评分:0.0
巧妙运用'\0' ```c#include#include#includeintmain(){intn,flag=0;chara[100],b[100];gets_s(a);intk=strlen(a);if(a[k-2]=='e'&&a[k-1]=='r'||a[k-2]=='l'&&a[k-1]=='y')a[k- 题解列表 2023年02月01日 0 点赞 0 评论 836 浏览 评分:9.9
最大值和最小值的差 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[10001];int main(){ int n,i,max,min; scanf("%d",&n); …… 题解列表 2023年02月01日 0 点赞 0 评论 1179 浏览 评分:9.9
1210: 小明A+B(简单解法) 摘要:解题思路:对于小于100的数,对100取余得它本身对于大于100的数,对100取余得后两位参考代码:#include<stdio.h> int main(){ int c,i,n,a,b; sc…… 题解列表 2023年01月31日 1 点赞 0 评论 824 浏览 评分:9.9
结构体之成绩记录(简单易懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student { char num[10]; char name[20]; int a; i…… 题解列表 2023年01月31日 0 点赞 0 评论 494 浏览 评分:0.0
1200: 回文串 摘要:参考代码:#include<stdio.h> #include<string.h> int main(){ int i,j=0; char a[260],b[260]; gets(a);…… 题解列表 2023年01月31日 0 点赞 0 评论 627 浏览 评分:9.9
C语言递归哦!(看到好多递归给的都是c++或其他语言) 摘要: #include void An(int i,int n) { if(i==n) printf("sin(%d)",n); …… 题解列表 2023年01月31日 0 点赞 0 评论 641 浏览 评分:10.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double n; scanf("%lf",&n); printf("…… 题解列表 2023年01月31日 0 点赞 0 评论 556 浏览 评分:0.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double x1,y1,x2,y2,x3,y3; double s,p,…… 题解列表 2023年01月31日 0 点赞 0 评论 532 浏览 评分:0.0