1048-自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;string copy(int m,char a[]){ s…… 题解列表 2022年10月06日 0 点赞 0 评论 408 浏览 评分:0.0
1049-结构体之时间设计 摘要:解题思路:注意事项:参考代码:/*天数问题:1、3、5、7、8、10、12月:31天4、6、9、11月:30天2月:非闰年有28天,闰年有29天 闰年特点:1) 4的倍数,不是100的倍数2) 400…… 题解列表 2022年10月06日 0 点赞 0 评论 371 浏览 评分:0.0
1050-结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ char num[10]; char name…… 题解列表 2022年10月06日 0 点赞 0 评论 300 浏览 评分:0.0
一般人写的常规代码 摘要:解题思路:注意事项:参考代码: int i,n,sum=0,p=-1; scanf("%d",&n); for(i=0;i<n;i++) { p=p+3; sum=sum+p; …… 题解列表 2022年10月06日 0 点赞 0 评论 366 浏览 评分:0.0
1051-结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ char num[10]; char name…… 题解列表 2022年10月06日 0 点赞 0 评论 368 浏览 评分:0.0
1052-链表合并 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef struct Node{ int num; int grade…… 题解列表 2022年10月06日 0 点赞 0 评论 328 浏览 评分:0.0
1112-一元二次方程 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath> using namespace std;int main(){ int a,b,c; cin >>a …… 题解列表 2022年10月06日 0 点赞 0 评论 354 浏览 评分:0.0
1113-保留字母 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ string s,s1; getli…… 题解列表 2022年10月06日 0 点赞 0 评论 396 浏览 评分:0.0
1124-大、小写问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main() //该段代码无法通过,显示答案错误。D…… 题解列表 2022年10月07日 0 点赞 0 评论 342 浏览 评分:0.0
非字符串方法,暴力求解 摘要:解题思路:一步一步来,先确定位数是多少,再求出余数等,直接看代码。注意事项:参考代码:#include<stdio.h>int func_a(int a){ int i = 0; //判断传入的数字是…… 题解列表 2022年10月07日 0 点赞 0 评论 384 浏览 评分:0.0