123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586 |
- #pragma once
- #include <string>
- #include <vector>
- //Examination paper image recognition result
- typedef struct
- {
- std::string stu_name;
- std::string stu_code1;
- std::string stu_code2;
- std::string stu_class;
- std::string stu_grade;
- std::string stu_state;
- }coverStu;
- typedef struct
- {
- std::string stu_no;
- std::string stu_type;
- int option_cout;
- }questionAi;
- enum EPIR_RESULT
- {
- EPIR_SUCCESS,
- };
- struct img_param{
- int paper_id;
- int phy_number;
- int schema_index;
- int x_s[3];
- int y_s[3];
- int x_m[3];
- int y_m[3];
- char img_path[512];//画板修改之后的图像
- char img_path_src[512];//原始图像
- };
- struct Cross
- {
- int x;
- int y;
- int signal;
- double angle;
- };
- //学生信息
- struct STUDENT_INFO{
- int _index;
- long student_id;
- std::string student_name;
- std::string class_name;
- std::string student_code;
- //-1表示没有分数
- float score;
- long class_id;
- //试卷ID 值为-1时表示试卷还没有扫描
- int paper_id;
- int location_id;//督学卡定位编号
- };
- //扫描仪信息
- struct SCANNER_INFO{
- //扫描仪ID
- unsigned int Id;
- //制造商
- char Manufacturer[34];
- //产品家族(系列)
- char ProductFamily[34];
- //产品名称
- char ProductName[34];
- //协议主版本号
- unsigned short ProtocolMajor;
- //协议次版本号
- unsigned short ProtocolMinor;
- };
- //异常位移
- enum EXCEPTION_SHIFT{
- //定位点异常
- SHIFT_DINGWEIDIAN =0,
- //试卷删除
- SHIFT_SHIJUANSHANCHU,
- //非法试卷
- SHIFT_FEIFASHIJUAN,
- //AB卷未识别
- SHIFT_ABJUANWEISHIBIE,
- //考号待匹配
- SHIFT_KAOHAODAIPIPEI,
- //考号未识别
- SHIFT_KAOHAOWEISHIBIE,
- //考号不存在
- SHIFT_KAOHAOBUCUNZAI,
- //考号冲突
- SHIFT_KAOHAOCHONGTU,
- //漏涂
- SHIFT_LOUTU,
- //漏批
- SHIFT_LOUPI,
- //教师误判(判分超过满分)
- SHIFT_WUPAN,
- //无法识别主观题
- SHIFT_WUFASHIBIE_ZHUGUANTI,
- //试卷缺页
- SHIFT_SHIJUANQUEYE,
- //试卷识别中
- SHIFT_SHIJUANCHONGXINSHIBIEZHONG,
- //试卷缺考
- SHIFT_SHIJUANQUEKAO,
- //客观题异常
- SHIFT_KEGUANTIYICHANG,
- // 被覆盖
- SHIFT_COVERD,
- //异常状态数
- EX_TYPE_COUNT,
- };
- //异常类型定义
- enum EXCEPTION_TYPE{
- //正常
- EX_NOMARL =0,
- //试卷删除
- EX_SHIJUANSHANCHU =1<<SHIFT_SHIJUANSHANCHU,
- //定位点异常
- EX_DINGWEIDIAN =1<<SHIFT_DINGWEIDIAN,
- //非法试卷
- EX_FEIFASHIJUAN =1<<SHIFT_FEIFASHIJUAN,
- //非法试卷
- EX_ABJUANWEISHIBIE =1<<SHIFT_ABJUANWEISHIBIE,
- //考号待匹配
- EX_KAOHAODAIPIPEI =1<<SHIFT_KAOHAODAIPIPEI,
- //考号未识别
- EX_KAOHAOWEISHIBIE =1<<SHIFT_KAOHAOWEISHIBIE,
- //考号不存在
- EX_KAOHAOBUCUNZAI =1<<SHIFT_KAOHAOBUCUNZAI,
- //考号冲突
- EX_KAOHAOCHONGTU =1<<SHIFT_KAOHAOCHONGTU,
- //漏涂
- EX_LOUTU =1<<SHIFT_LOUTU,
- //漏批
- EX_LOUPI =1<<SHIFT_LOUPI,
- //教师误判(判分超过满分)
- EX_WUPAN =1<<SHIFT_WUPAN,
- //无法识别主观题
- EX_WUFASHIBIE_ZHUGUANTI =1<<SHIFT_WUFASHIBIE_ZHUGUANTI,
- //试卷缺页
- EX_SHIJUANQUEYE =1<<SHIFT_SHIJUANQUEYE,
- //试卷重新识别中
- EX_SHIJUANCHONGXINSHIBIEZHONG =1<<SHIFT_SHIJUANCHONGXINSHIBIEZHONG,
- //试卷缺考
- EX_SHIJUANQUEKAO =1<<SHIFT_SHIJUANQUEKAO,
- //客观题异常
- EX_KEGUANTIYICHANG =1<<SHIFT_KEGUANTIYICHANG,
- };
- //异常类型的组合用于某些组合状态
- enum MUTIL_EXCEPTION_TYPE{
- //考号异常
- MEX_KAOHAOYICHANG=EX_KAOHAOWEISHIBIE|EX_KAOHAOCHONGTU|EX_KAOHAOBUCUNZAI,
- //识别异常
- MEX_SHIBIEYICHANG =EX_DINGWEIDIAN|EX_FEIFASHIJUAN|EX_WUFASHIBIE_ZHUGUANTI|EX_SHIJUANQUEYE,
- //归于异常目录的状态
- MEX_YICHANG=EX_DINGWEIDIAN|EX_FEIFASHIJUAN|EX_ABJUANWEISHIBIE|EX_KAOHAODAIPIPEI|EX_KAOHAOWEISHIBIE|EX_KAOHAOBUCUNZAI|EX_KAOHAOCHONGTU|EX_WUFASHIBIE_ZHUGUANTI|EX_SHIJUANQUEYE|EX_SHIJUANSHANCHU,
- //不可上传的状态
- MEX_BUKESHANGCHUANG =EX_DINGWEIDIAN|EX_FEIFASHIJUAN|EX_KAOHAOWEISHIBIE|EX_KAOHAOBUCUNZAI|EX_KAOHAOCHONGTU|EX_KAOHAODAIPIPEI|EX_ABJUANWEISHIBIE|EX_WUFASHIBIE_ZHUGUANTI|EX_SHIJUANQUEYE|EX_SHIJUANCHONGXINSHIBIEZHONG|EX_SHIJUANSHANCHU,
- //不可查询分数
- MEX_BUKECHAXUNFENSHU=EX_DINGWEIDIAN|EX_FEIFASHIJUAN|EX_WUFASHIBIE_ZHUGUANTI|EX_ABJUANWEISHIBIE|EX_WUFASHIBIE_ZHUGUANTI|EX_SHIJUANQUEYE|EX_SHIJUANCHONGXINSHIBIEZHONG|EX_SHIJUANSHANCHU,
- //必须处理的异常类型
- MEX_BIXUCHULIYICHANG=EX_DINGWEIDIAN|EX_FEIFASHIJUAN|EX_KAOHAOWEISHIBIE|EX_KAOHAOBUCUNZAI|EX_KAOHAOCHONGTU|EX_WUFASHIBIE_ZHUGUANTI|EX_SHIJUANQUEYE,
- //非必须处理异常
- MEX_FEIBIXUCHULIYICHANG=EX_LOUTU|EX_LOUPI|EX_WUPAN,
- //可以处理异常
- MEX_KECHULIYICHANG=EX_DINGWEIDIAN|EX_FEIFASHIJUAN|EX_ABJUANWEISHIBIE|EX_KAOHAOWEISHIBIE|EX_KAOHAOBUCUNZAI|EX_KAOHAOCHONGTU|EX_LOUTU|EX_LOUPI|EX_WUPAN|EX_WUFASHIBIE_ZHUGUANTI|EX_SHIJUANQUEYE,
- //正常状态
- MEX_ZHENGCHANGLIEBIAO=EX_KAOHAODAIPIPEI|EX_SHIJUANQUEKAO,
- //异常状态
- MEX_YICHANGCHANGLIEBIAO=EX_DINGWEIDIAN|EX_FEIFASHIJUAN|EX_ABJUANWEISHIBIE|EX_KAOHAOWEISHIBIE|EX_KAOHAOBUCUNZAI|EX_KAOHAOCHONGTU|EX_LOUTU|EX_LOUPI|EX_WUPAN|EX_WUFASHIBIE_ZHUGUANTI|EX_SHIJUANQUEYE,
- };
- //异常信息
- struct EXCEPTION_INFO{
- int exception_id;//异常ID
- EXCEPTION_TYPE type;//异常类型
- int x;//异常区域X坐标
- int y;//异常区域Y坐标
- int w;//异常区域宽度
- int h;//异常区域高度
- };
- //异常类型信息
- struct EXCEPTION_TYPE_INFO{
- long exception_type;
- char exception_name[20];
- int exception_count;
- };
- //页面详情
- struct PAGE_DETAIL{
- int page_id;
- int page_index;//从1开始的页码
- int phy_number;//物理序号
- std::string img_path;
- std::string img_oldpath;
- std::vector<EXCEPTION_INFO> exceptions;
- };
- //矩形区
- struct AI_RET_RECT
- {
- int x1;
- int x2;
- int y1;
- int y2;
- };
- enum AI_RECT_TYPEP
- { AI_TIANTUKAOHAO,AI_DINGWEIDIAN,AI_DINGWEIQU,AI_JIAOCHADIAN, AI_TIAOXINGMA, AI_QUEKAOBIAOJI, AI_XUANZETI, AI_TIANKONGTI, AI_ZHUGUANTI, AI_XUANZUOTI, AI_XUANZUOTUDIAN, AI_ZHUGUANTI2, AI_QUEKAO };
- struct AI_RET_RECT2
- {
- AI_RECT_TYPEP rect_type;
- int x;
- int y;
- int width;
- int height;
- int directoin; //方向 180-- 水平 90--垂直
- //填涂考号参数
- int nCols;//列数
- float widthH; //涂点宽度
- float gapH;
- int nRows; //行数
- float widthV; //涂点高度
- float gapV;
- std::string outputChar;
- std::vector<int> tihao;
- std::string tihao_aiExamper;
- std::vector<float> default_points;
- std::vector<float> half_points;
- int showMarkTypeIndex;
- int postMarkTypeID;
- bool isSplit;//分页
- int unitID;//分页ID
- bool duoxuanti;
- };
- struct PAPER_DETAIL{
- int paper_id;
- char examnumber[64];
- char student_id[64];
- char student_name[64];
- char class_name[64];
- long exceptionsFlag;
- bool has_covered;
- float score;
- float fullScore;
- float fullScoreObjective;
- std::vector<EXCEPTION_INFO> exceptions;
- int location_id;//督学卡定位编号
- int paper_upload_state;
- char sz_upload_error_msg[512];
- };
- //题型枚举
- enum QUESTION_TYPE{
- xuanze,
- panduan,
- tiankong,
- zhuguanti1
- };
- enum QUESTION_STATE_FLAG{
- QSF_LOUTU=1,
- QSF_LOUPI=2,
- QSF_WUPAN=3,
- QSF_WUFASHIBIE=4,
- QSF_UNSELECT =16,
- };
- //题目状态
- enum QUESTION_STATE{
- //正常
- QUESTION_STATE_NORMAL =0,
- //漏涂,该异常现在不会抛出(保留)
- QUESTION_STATE_LOUTU =QSF_LOUTU,
- //漏批
- QUESTION_STATE_LOUPI =QSF_LOUPI,
- //误判
- QUESTION_STATE_WUPAN =QSF_WUPAN,
- //无法识别,该异常现在不会抛出(保留)
- QUESTION_STATE_WUFASHIBIE =QSF_WUFASHIBIE,
- //未选该题
- QUESTION_STATE_UNSELECT =QSF_UNSELECT,
- //未选该题并且没涂
- QUESTION_STATE_UNSELECT_LOUTU =QSF_UNSELECT|QSF_LOUTU,
- //未选该题并且没有识别该题
- QUESTION_STATE_UNSELECT_WUFASHIBIE =QSF_UNSELECT|QSF_WUFASHIBIE,
- };
- //小题详情
- struct QUESTION_INFO{
- int _index;
- //int question_id;
- std::string question_code;//题号(只有数字)
- std::string answer_std;//标准答案
- std::string answer_stu;//学生答案
- QUESTION_TYPE question_type; //选择,判断,填空,主管题 0 选择题;1判断题;2填空题;3主观题
- int is_mutil;//是否多选
- int option_count;//选项数
- float score_full;//满分
- float score_half;//半对得分
- float score_stu;
- QUESTION_STATE question_state;//题目状态
- };
- //题目分组
- struct GROUP_QUESTION{
- int _index;
- int question_type;//题型
- std::string question_type_name;//题型名称
- std::vector<QUESTION_INFO> questionList;//该类型题目的小题详情
- };
- struct IDENTIFY_MSG{
- //学生ID(为-1时表示学生证号未识别)
- long student_id;
- //是否已识别
- bool identified;
- //学生姓名
- char student_name[30];
- //考号
- char examnumber[30];
- //班级信息
- char class_info[30];
- //试卷异常
- long exceptions ;
- //班级Id
- long class_id;
- //分数
- float score;
- //试卷ID
- int paper_id;
- //班级学生总数(大于0时有效,只在第一次识别该班级考生时有值)
- int class_total;
- int locationID;//督学卡定位编号
- };
- struct SCAN_ANALYSIS_MSG{
- //考试名称
- char exam_name[256];
- //科目代码
- char course_code[10];
- //考试ID(不一定是数字)
- char paper_id[20];
- };
- //识别器错误事件
- struct IDENTIFOR_ERROR_MSG{
- //类型,目前无需处理
- int type ;//2:缺页 3:文件命名长度不一致
- //错误消息,目前仅需要弹出消息即可,不涉及后续处理
- char msg[256];
- };
- //图像上传任务状态枚举
- enum IMG_UPLOAD_TASK_STATE{
- //新任务
- UPLOAD_TASK_STATE_NOTSTART,
- //上传中
- UPLOAD_TASK_STATE_UPLOADING,
- //已暂停
- UPLOAD_TASK_STATE_PAUSED,
- //已完成
- UPLOAD_TASK_STATE_COMPLETED
- };
- struct IMG_UPLOAD_TASK{
- //任务ID
- int upload_task_id;
- //任务名称
- char task_name[128];
- //扫描时间
- char time[32];
- //任务状态
- IMG_UPLOAD_TASK_STATE upload_task_state;
- //已上传数量
- int upload_count;
- //任务总量
- int total_count;
- __int64 exam_id;
- __int64 exam_course_id;
- int scan_type;
- __int64 exam_course_id_from;
- std::string batch_code_from;
- std::string examinne_id_from;
- };
- /************************************************************************/
- /* 试卷送入器类型 */
- /* 2014年12月9日16:04:06 */
- /* 作者:唐林 */
- /************************************************************************/
- enum FEEDER_TYPE{
- Folder = 1,
- Scanner =2,
- //Restart =3,
- AdjustBatch =4,
- AdjustExaminne=5,
- ManualMatch =6,
- AutoSchemaFlag = 0x100,
- FEEDER_TYPE_MASK = AutoSchemaFlag - 1,
- AutoSchemaFolder = AutoSchemaFlag | Folder,
- AutoSchemaScanner = AutoSchemaFlag | Scanner,
- //AutoSchemaRestart = AutoSchemaFlag | Restart,
- AutoSchemaAdjustBatch = AutoSchemaFlag | AdjustBatch,
- AutoSchemaAdjustExaminne = AutoSchemaFlag | AdjustExaminne,
- AutoSchemaManualMatch = AutoSchemaFlag | ManualMatch,
- };
- struct ScanParam{
- __int64 examId;
- __int64 examCourseId;
- std::string examName;
- std::string courseName;
- int scanner_id;
- std::string img_dir;
- __int64 examCourseIdOld;
- std::string batch;
- std::string examinneid;
- };
- enum {
- IDF_LOAD_SUCCESS =0,
- IDF_LOAD_FAILURE =1,
- IDF_LOAD_SUB_LEN =16,
- IDF_LOAD_SUBMASK =(1<<IDF_LOAD_SUB_LEN)-1,
- IDF_LOAD_CLASS_LOAD =0<<IDF_LOAD_SUB_LEN,
- IDF_LOAD_CLASS_SCHEMA =1<<IDF_LOAD_SUB_LEN
- };
- #define BIG_CLASS(v) (v&(~IDF_LOAD_SUBMASK))
- #define SUB_CLASS(v) (v&IDF_LOAD_SUBMASK)
- enum {
- //试卷扫描结果报告(WPARAM 字段为 IDENTIFY_MSG 类型指针)
- WM_IDENTIFOR_REPORT=0x0400+61,
- //通知试卷状态已经改变 lparam 位试卷ID
- WM_IDENTIFOR_PAPER_STATE_CHAGED,
- //试卷被覆盖
- WM_IDENTIFOR_PAPER_COVERD,
- // 覆盖所有考号冲突
- WM_IDENTIFOR_PAPER_COVERD_ALL_KAOHAOCHONGTU,
- //识别器准备就绪事件
- WM_IDENTIFOR_READY,
- //识别器启动事件
- WM_IDENTIFOR_STARTED,
- //识别器停止事件
- WM_IDENTIFOR_STOPED ,
- //识别器已恢复
- WM_IDENTIFOR_RESUMED,
- //识别器已暂停
- WM_IDENTIFOR_PAUSED,
- //试卷结果上传开始
- WM_IDENTIFOR_RESULT_UPLOAD_STARTED,
- //试卷结果上传进度报告(wParam字段为进度信息0-10000)
- WM_IDENTIFOR_RESULT_UPLOAD_PROGRESS,
- //试卷结果上传完成
- WM_IDENTIFOR_RESULT_UPLOAD_COMPLETED,
- //识别器发生错误事件(WPARAM 字段为 IDENTIFOR_ERROR_MSG 类型指针)
- WM_IDENTIFOR_ERROR,
- //识别器发生错误事件(WPARAM 字段为 SCAN_ANALYSIS_MSG 类型指针)
- WM_IDENTIFOR_ANALYSIS,
- //识别完成事件
- WM_IDENTIFOR_COMPLETE,
- //图片上传线程已开始(无参数)
- WM_IDENTIFOR_IMG_UPLOAD_STARTED,
- //图片上传新任务报告(WPARAM 字段为 IMG_UPLOAD_TASK 类型指针)(这个消息是指新增了一个任务,并未开始上传)
- WM_IDENTIFOR_IMG_UPLOAD_NEWTASK,
- //图片上传状态报告 (总的状态) WPARAM 字段为 BOOL 类型 TRUE 标准正在上传 否则 等待中
- WM_IDENTIFOR_IMG_UPLOAD_STATE,
- //图片上传任务状态改变(WPARAM 字段为 IMG_UPLOAD_TASK 类型指针)
- WM_IDENTIFOR_IMG_UPLOAD_TASK_STATE,
- //图片上传进度报告(WPARAM 字段为 IMG_UPLOAD_TASK 类型指针)
- WM_IDENTIFOR_IMG_UPLOAD_TASK_PROGRESS,
- //图片上传线程已停止(无参数)
- WM_IDENTIFOR_IMG_UPLOAD_STOPED,
- //扫描仪连接报告事件(wParam字段为扫描仪id lParam字段为是否[BOOL]成功)
- WM_IDENTIFOR_SANNER_CONNECT,
- //扫描仪断开连接报告事件(该事件暂时没有使用,保留)
- WM_IDENTIFOR_SANNER_DISCONNECT,
- //扫描设置结果报告(该事件暂时没有使用,保留)
- WM_IDENTIFOR_SANNER_SETTING_RESULT,
- //下载图片
- WM_IMG_DOWNLOAD_OVER,
- WM_IMG_CLOUD_OVER,
- //筛选
- WM_SCAN_LIST_FILTER,
- WM_UPLOAD_ON_CAN_NOTIFY,
- WM_QUICK_HANDLE_STOPED,
- WM_IS_NOT_SAME_EXAM_ID,
- };
- enum UPLOAD_ON_SCAN_CMD
- {
- CMD_UPLOAD_YICHANGEJUAN, // 上传异常卷
- CMD_UPLOAD_SUCCESSSJUAN,// 上传成功试卷
- CMD_RE_UPLOADERROR,//重传【上传失败】的试卷
- CMD_IS_HAS_UPLOADERROR, // 是否有上传失败的记录
- CMD_UPLOAD_STOP,
- CMD_UPLOAD_START,
- CMD_GET_UPLOAD_PROCESS,
- CMD_SET_SCAN_STOP_FLAG,
- CMD_SEND_UPLAOD_RST_TO_ZXHX,
- CMD_START_SCAN,
- CMD_DEL_UPLOAD_REPORT,
- };
- enum BATCH_SRV_CMD
- {
- BS_CMD_DEL_REDIFY_TMP_IMG,
- BS_CMD_GET_BE_COVERD_PAPERS, // 获取被覆盖的试卷信息
- BS_CMD_IS_HAS_COVERD, // 是否有被覆盖的
- BS_CMD_IS_HAS_KAOHAOCHONGTU, // 是否有考号冲突
- BS_CMD_COVERD_ALL_KAOHAOCHONGTU, // 覆盖所有考号冲突
- };
- struct UploadProcess
- {
- int m_nErrorUploadSuccess;// 异常卷上传成功数量
- int m_nErrorUploadBad; // 异常卷上传失败数量
- int m_nErrorUploadTotal; // 异常卷上传总量
- int m_nOriUploadSuccess; // 原卷卷上传成功数量
- int m_nOriUploadBad; // 原卷卷上传失败数量
- int m_nOriUploadTotal; // 答卷上传总量
- int m_nRstUploadSuccess; // 答卷卷上传成功数量
- int m_nRstUploadBad; // 答卷卷上传失败数量
- int m_nRstUploadTotal; // 答卷上传总量
- UploadProcess(){
- memset(this, 0, sizeof(UploadProcess));
- }
- };
- enum UPLOAD_STATUS{
- UPLOAD_SUCCESS,
- UPLOAD_ERROR,
- UPLOAD_START,
- };
- struct MY_UPLOAD_REV_INFO{
- UPLOAD_STATUS status; //状态
- long paperid; //id
- };
- enum UPLOAD_SHIJUAN_TYPE
- {
- TYPE_RST, //答卷
- TYPE_ORI, // 原卷
- TYPE_ERROR, // 异常卷
- UPLOAD_PROCESS_RST,
- TYPE_END,
- };
- typedef struct MY_DB_INFO
- {
- char sUrl[1024];
- char sabsentUrl[1024];
- char sDbBasePath[520];
- char sSeesion[520];
- char sExamName[256];
- char sSubjectName[256];
- int ntype;
- int nmode;//模式(0,第三方正常数据,1,第三方异常数据收集)
- int course_id;
- int bScanType;// 是否是在线答题卡
- int total_error; //总共多少份异常
- int cur_process_error; // 已经下载了的异常
- int upload_ori_success; // 成功上传原卷数量
- int upload_rst_success; // 成功上传答卷数量
- int upload_error_success; // 成功上传异常卷数量
- }my_database_info;
- // 该结构用于处理客观题异
- struct KEGUANTI_DETAIL{
- char question_code[64];
- int question_type; // 存的QuestionType枚举的值 0 单选 1 多选 2 判断题
- char answer_all[64];
- char answer_std[64];
- char answer[64];
- float score_full;
- float score_half;
- float score; // 该题得分
- std::string question_nick_code;
- KEGUANTI_DETAIL()
- {
- memset(question_code, 0, sizeof(question_code) / sizeof(char));
- memset(answer_all, 0, sizeof(answer_all) / sizeof(char));
- memset(answer_std, 0, sizeof(answer_std) / sizeof(char));
- memset(answer, 0, sizeof(answer) / sizeof(char));
- question_type = 0;
- score_full = 0;
- score_half = 0;
- score = 0;
- }
- };
|