|
|
@ -1,4 +1,4 @@
|
|
|
|
#include "mysyslib.h"
|
|
|
|
w#include "mysyslib.h"
|
|
|
|
|
|
|
|
|
|
|
|
ss* init(int Nums){
|
|
|
|
ss* init(int Nums){
|
|
|
|
ss* stu = (ss*)malloc(sizeof(ss));
|
|
|
|
ss* stu = (ss*)malloc(sizeof(ss));
|
|
|
@ -9,8 +9,8 @@
|
|
|
|
if(!stu->student) return NULL;
|
|
|
|
if(!stu->student) return NULL;
|
|
|
|
|
|
|
|
|
|
|
|
for(int i = 0; i < Nums; ++i){
|
|
|
|
for(int i = 0; i < Nums; ++i){
|
|
|
|
stu->student[i].id = (char*)malloc(sizeof(char)*5);
|
|
|
|
stu->student[i].id = (char*)malloc(sizeof(char)*6);
|
|
|
|
stu->student[i].class = (char*)malloc(sizeof(char)*2);
|
|
|
|
stu->student[i].class = (char*)malloc(sizeof(char)*3);
|
|
|
|
stu->student[i].name = (char*)malloc(sizeof(char)*10);
|
|
|
|
stu->student[i].name = (char*)malloc(sizeof(char)*10);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|