- 博客(3)
- 收藏
- 关注
原创 添加记录(结构体)
#include <iostream>#include <stdio.h>#include <algorithm>#include <math.h>using namespace std;struct student{ char id[20]; char name[20]; int a, b, c;}kk;int main(){ int i, n, j, flag = 0; student ...
2021-12-13 17:47:54 844
原创 查询记录(结构体)
#include <iostream>#include <string.h>using namespace std; struct student{ char id[22]; char name[22]; int a,b,c;}stu;int main(){ int i,n; cin>>n; student stu[100]; for(i=0;i<n;i++) { ...
2021-12-13 17:19:17 650
原创 插入排序问题
直接先把m加入到数组中冒泡或者用sort函数做比较简单#include <iostream>#include <stdio.h>#include <algorithm>#include <math.h>using namespace std;int main(){ int m, n; int a[101]; while (scanf_s("%d", &n) != EOF) { int i, t; cin &g..
2021-12-13 16:54:49 560
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人