Compare commits

..

No commits in common. '王' and 'main' have entirely different histories.
... main

@ -1,27 +0,0 @@
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
struct student {
char name[10];
int id;
};
struct cllass {
struct student stu[100];
int length;
};
void insert(struct student* a, struct cllass* b) {
b->stu[b->length] = *a;
b->length++;
}
int main_seqlist() {
struct cllass a;
a.length = 0;
int num;
struct student l;
scanf("%d", &num);
for (int i = 0; i++; i < num) {
scanf("%s", l.name);
scanf("%d", &l.id);
insert(&l, &a);
}
return 0;
}
Loading…
Cancel
Save