C/C++の宿題片付けます 126代目
■ このスレッドは過去ログ倉庫に格納されています
0752743
2009/06/04(木) 19:24:40// char Id[5];
char Id[5+1];
//void add_student(List *ptr_ptr, char Id, int Eng, int Math, int Jap,int Total);
void add_student(List *ptr_ptr, char *Id, int Eng, int Math, int Jap,int Total);
// char identifier[5];
char identifier[5+1];
// add_student(&head, identifier[5], numE, numM, numJ, numT);
add_student(&head, identifier, numE, numM, numJ, numT);
//void add_student(List *ptr_ptr, char Id, int Eng, int Math, int Jap, int Total)
void add_student(List *ptr_ptr, char *Id, int Eng, int Math, int Jap, int Total)
// new_student->Id[5] = Id;
new_student->Id[0] = Id[0];
new_student->Id[1] = Id[1];
new_student->Id[2] = Id[2];
new_student->Id[3] = Id[3];
new_student->Id[4] = Id[4];
new_student->Id[5] = Id[5];
// int sumE,sumM,sumJ,sumT;
int sumE=0,sumM=0,sumJ=0,sumT=0;
■ このスレッドは過去ログ倉庫に格納されています