资源描述:
《学生成绩管理系统 汇编语言.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、;==学生成绩管理系统==;*******************************************************************************;EQUSTATEMENTSGOHEREStructNodeequ32;表达式赋值微操作equpage133Node_nameequ0;类似defineNode_numequ12Node_mathsequ18Node_englishequ20Node_chineseequ22Node_othersequ24Node_t
2、otalequ26Node_avgequ28Node_nextequ30max_recordequ100max_menu_indexequ9;*******************************************************************************;*******************************************************************************data_segsegment;defined
3、atasegment;DATAGOESHEREbuf1DB30buf1_slenDB?buf1_dataDB30dup(?)bufnameDB20bufname_slenDB?bufname_dataDB20dup(?)bufgetintDB32bufgetint_slenDB?bufgetint_dataDB32dup(?)str_menuDB0dH,0aH,'=====Studentmarkssystem=====',0dH,0aH,0dH,0aHDB'1)AddRecord',0dH,0aH,0
4、dH,0aHDB'2)PrintAll',0dH,0aH,0dH,0aHDB'3)Save',0dH,0aH,0dH,0aHDB'4)Open',0dH,0aH,0dH,0aH,0dH,0aHDB'5)Find',0dH,0aH,0dH,0aH,0dH,0aHDB'6)Delete',0dH,0aH,0dH,0aH,0dH,0aHDB'0)Exit',0dH,0aHDB'Choice:$';ErrorStringsstr_error_1DB'Errorinput!',0dH,0aH,'$'jump_t
5、bDWcase_0DWcase_1DWcase_2DWcase_3DWcase_4DWcase_5DWcase_6headDW?;表头指针info_0db'inputnum:','$'info_1db'inputmath:','$'info_2db'inputenglish:','$'info_3db'inputchinese:','$'info_4db'inputothers:','$'info_5db'inputname:','$'str_tb_headdb'Num',9,'Name',9,'Ma
6、ths',9,'English',9,'Chinese',9,'Others',9,'Total',9,'Avg',0dH,0aHdb'=================================================================',0dH,0aH,'$'str_tabdb9,'$'rdatadb(StructNode*(max_record+1))dup(?);全部结点*(100+1)rdata_pdwrdata;下一个可用结点rcountdw00H;当前已分配的
7、结点数newnodedw?pnodedw?file_namedb'c:student.txt',00Hfile_error1db'Failedcreatefile...',0DH,0AH,'$'file_error2db'Failedwritefile...',0DH,0AH,'$'file_error3db'Failedopenthefile...',0DH,0AH,'$'file_error4db'Failedreadfile...',0DH,0AH,'$'file_info_1db'savin
8、gthefile...',0DH,0AH,'$'file_info_2db'Writetofilesuccessfully!',0DH,0AH,'$'file_info_3db'openingthefile...',0DH,0AH,'$'file_info_4db'readthefilesuccessfully!',0DH,0AH,'$'fp1dw?;文件指针data_segends;***********************************