Return to bubbler.h CVS log | Up to [LON-CAPA] / capa / capa51 / Historic |
Initial revision
1: /*Get Form Errors*/ 2: #define GFSUCCESS 100 3: #define GFFAILED 101 4: #define GFEOF 102 5: #define GFSPACES 103 6: 7: /*Check Form Errors*/ 8: #define ESTID 201 9: #define ECLASSL 202 10: #define EPIN 203 11: #define ECLASS 204 12: 13: /*findPID Errors*/ 14: #define ENONE 301 15: #define ENOONE 302 16: 17: /*questions array size*/ 18: #define MAXQUEST 40 19: 20: /*grading stryles*/ 21: #define KASHYMETHOD 1 22: #define MRTMETHOD 2 23: #define STRICT 3 24: 25: typedef struct 26: { 27: char answerPID[10]; 28: char questionPID[10]; 29: char class[9]; 30: char SetId[6]; 31: char PIN[7]; 32: char Answers[50][6]; 33: } Student; 34: 35: typedef struct 36: { 37: char type; 38: int leafs; 39: int points; 40: } Question; 41: 42: typedef struct 43: { 44: char PID[MAX_STUDENT_NUMBER]; 45: int PIN; 46: } PIDPINlist;