亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? student.txt

?? 程序要求實(shí)現(xiàn)學(xué)生成績(jī)的添加
?? TXT
字號(hào):
data    segment
mess1   db '          student grade management system',0ah,0dh,'$'
mess2   db '   this is main menu',0ah,0dh,'$'
mess3   db '    insert  (i)         please input:',0ah,0dh,'$' 
mess4   db '    modify  (m)         name    :',0ah,0dh,'$'
mess5   db '    delete  (d)         maths   :',0ah,0dh,'$'
mess6   db '    query   (q)         english :',0ah,0dh,'$'
mess7   db '    count   (c)         computer:',0ah,0dh,'$'
mess8   db '    print   (p)         chinese :',0ah,0dh,'$'
mess9   db '    exit    (e)',0ah,0dh,'$'
mess10  db '**********************************************************$'
mess11  db 'name            Ma   En   Co   Ch',0ah,0dh,'$'
mess13  db '    list    (l)',0ah,0dh,'$'
mess12  db 'maths  <60  <70  <80  <90  <100',0ah,0dh,'$'
err1    db ' there is not this student$'
err2    db ' file close wrong$'

fname   db "d:\score.txt"

buffer1 db 23 dup(?)
buffeer db 0ah,0dh,'$'
buffer2 db 30 dup(?)
buffer3 db 8 dup('0')
count   db 5
handle  dw ?
del     db 8 dup('0')
x       db ?
data    ends

score struc
names    db 15 dup(' ')
maths    db 0,0
english  db 0,0
computer db 0,0
chinese  db 0,0
score ends

show macro addrs
        lea dx,addrs
        mov ah,9
        int 21h
        endm

set_p1 macro  a
        mov ah,2
        mov dh,a
        mov dl,36
        mov bh,0
        int 10h
        endm

set_p2 macro
       mov ah,2
       mov dh,12
       mov dl,2
       mov bh,0
       int 10h
       endm
set_p3 macro
       mov ah,2
       mov dh,1
       mov dl,30
       mov bh,0
       int 10h
       endm

clear  macro                        ;all screen
       mov al,0
       mov cl,0
       mov ch,0
       mov dh,24
       mov dl,79
       mov bh,7
       mov ah,6
       int 21h
       endm

clear1 macro                   ;lefe screen
       mov al,0
       mov bh,7
       mov ch,4
       mov cl,36
       mov dh,10
       mov dl,79
       mov ah,6
       int 10h
       endm

clear2 macro                      ;down screen
       mov al,0
       mov bh,7
       mov ch,12
       mov cl,0
       mov dh,24
       mov dl,79
       int 10h
       endm

newline macro
        push ax
        push dx
        mov dl,0dh
        mov ah,2
        int 21h
        mov dl,0ah
        mov ah,2
        int 21h
        pop dx
        pop ax
        endm

show_item macro addrs
        local iloop,w10
        push bx
        push cx
        mov bx,0
iloop:  mov dl,addrs[bx]         ;display char
        mov ah,2
        int 21h
        inc bx
        cmp bx,15
        jl  iloop
        mov cx,4
w10:    mov dl,' '
        mov ah,2
        int 21h
        mov dl,' '
        mov ah,2
        int 21h
        mov dl,' '
        mov ah,2
        int 21h

        mov dl,addrs[bx]
        mov ah,2
        int 21h
        inc bx
        mov dl,addrs[bx]
        mov ah,2
        int 21h
        inc bx
        loop  w10
        newline
        pop cx
        pop bx
        endm

getin   macro addrs,count2
local   zeroit,lp,input_end,exit
        push bx
        push ax
        mov bx,0
zeroit: mov addrs[bx],' '
        inc bx
        cmp bx,15
        jl  zeroit

        mov bx,0
lp:     mov ah,1
        int 21h
        cmp al,0ah
        jz  input_end
        cmp al,0dh
        jz  input_end
        mov addrs[bx],al
        inc bx
        cmp bx,count2
        jl lp
input_end: cmp al,0dh
        jz  exit
        cmp al,0ah
        jz  exit
        mov ah,7
        int 21h
        jmp input_end
exit:   
        pop ax
        pop bx
        endm



code    segment
main proc far
     assume  cs:code,ds:data,es:data

start: 
      mov ax,data
      mov ds,ax
      mov ah,0
      mov al,3
      int 10h
     
      clear
      show mess1
      show mess2
      show mess13
      show mess3
      show mess4
      show mess5
      show mess6
      show mess7
      show mess8
      show mess9
      newline
      show mess10
      set_p3
w:    mov ah,7
      int 21h
      cmp al,'i'
      jnz n1            
      call insert
      jmp  w
n1:   cmp al,'m'
      jnz  n2
      call modify
      jmp  w
n2:   cmp al,'d'
      jnz  n3
      call delete
      jmp  w
n3:   cmp al,'q'
      jnz  n4
      call query
      jmp  w
n4:   cmp  al,'c'
      jnz  n5
      call cot
      jmp  w
n5:   cmp  al,'p'
      jnz  n6
      call print
      jmp  w
n6:   cmp  al,'l'
      jnz  n7
      call list
      jmp  w
n7:   cmp al,'e'
      jz  exitf
      jmp  w
exitf:
       mov ah,4ch
       int 21h
       ret
main   endp
insert proc near
       push ax					;存放Math成績(jī)
       push bx					;存放English成績(jī)
       push cx					;存放Computer成績(jī)
       push dx					;存放Chinese成績(jī)
      
       mov dx,offset fname      ;讀取文件score.txt
       mov al,2
       mov ah,3dh
       int 21h
       mov bx,ax
       clear1
       set_p1 4
       call get_rec
       mov cx,0                 ;將文件指針移到最后
       mov dx,0
       mov al,2
       mov ah,42h
       int 21h
             
       mov cx,23                    ;寫(xiě)入score.txt
       mov dx,offset buffer1
       mov ah,40h 
       int 21h
       mov ah,3eh
       int 21h
       set_p3
       pop dx
       pop cx
       pop bx
       pop ax
       ret
insert endp							  ;添加結(jié)束
get_rec proc near
       push ax
       push bx
       getin buffer2,15
       mov bx,0
       mov  cx,15
continue:   mov al,buffer2[bx]
       mov buffer1[bx],al
       inc bx
       loop  continue
       set_p1 5
       getin buffer2,2
       mov al,buffer2
       mov buffer1[bx],al
       inc bx
       mov al,buffer2+1
       mov buffer1[bx],al
       inc bx
       set_p1 6 
       getin buffer2,2
       mov al,buffer2
       mov buffer1[bx],al
       inc bx
       mov al,buffer2+1
       mov buffer1[bx],al
       inc bx
       set_p1 7
       getin buffer2,2
       mov al,buffer2
       mov buffer1[bx],al
       inc bx
       mov al,buffer2+1
       mov buffer1[bx],al
       inc bx
       set_p1 8
       getin buffer2,2
       mov al,buffer2
       mov buffer1[bx],al
       inc bx
       mov al,buffer2+1
       mov buffer1[bx],al
       inc bx
       pop bx
       pop ax
       ret
get_rec endp

openf proc near
      mov dx,offset fname
      mov al,02
      mov ah,3dh
      int 21h
      mov handle,ax
      ret
openf endp

query  proc near
       push ax
       push bx
       push cx
       push dx
       clear1
       clear2
       mov dx,offset fname
       mov al,2
       mov ah,3dh
       int 21h
       mov bx,ax
       set_p2
       getin buffer1,15
       lea dx,mess11
       mov ah,9
       int 21h
b:  
       mov ah,3fh
       mov cx,23
       mov dx,offset buffer2
       int 21h
       lea si,buffer2
       lea di,buffer1
       mov cx,15
c: 
       mov al,byte ptr[si] 
       cmp al,byte ptr[di]
       jnz b
       inc si
       inc di
       loop c
       mov [buffer2+23],'$'
       show_item buffer2
       mov ah,3eh
       int 21h
       pop dx 
       pop cx
       pop bx
       pop ax
       ret
query  endp
modify proc near
       push ax
       push bx
       push cx
       push dx
       clear1
       set_p1 4
       mov dx,offset fname			;讀取score.txt
       mov al,2
       mov ah,3dh
       int 21h
       mov bx,ax
       mov handle,ax
       call get_rec          		;根據(jù)輸入的學(xué)生姓名讀取其相關(guān)信息
read: 
       mov dx,offset buffer2
       mov cx,23
       mov ah,3fh
       int 21h
       lea si,buffer2
       lea di,buffer1
       mov cx,15
c5:  
       mov dl,byte ptr[si] 
       cmp dl,byte ptr[di]
       jnz read
       inc si
       inc di
       loop c5
       mov bx,handle
       mov ah,42h
       mov al,1
       mov cx,0ffffh
       mov dx,-23
       int 21h
       mov cx,23
       mov dx,offset buffer1		;將修改后的信息寫(xiě)入score.txt
       mov ah,40h
       int 21h
       mov ah,3eh
       int 21h
       jmp exit2
exit1: 
       set_p2
       show err1 
exit2:
       set_p3
       pop dx
       pop cx
       pop bx
       pop ax
       ret
modify endp 
delete proc near
       push ax
       push bx
       push cx
       push dx
       clear1
       set_p1 4
       mov dx,offset fname
       mov al,2
       mov ah,3dh
       int 21h
       mov bx,ax
       mov handle,ax
       getin buffer1,15          ;確認(rèn)是否存在輸入的學(xué)生信息
read5: 
       mov dx,offset buffer2
       mov cx,23
       mov ah,3fh
       int 21h
       lea si,buffer2
       lea di,buffer1
       mov cx,15
 c6:   
       mov dl,byte ptr[si] 
       cmp dl,byte ptr[di]
       jnz read5
       inc si
       inc di
       loop c6
       mov bx,handle
       mov ah,42h
       mov al,1
       mov cx,0ffffh
       mov dx,-8
       int 21h
       mov cx,8
       mov dx,offset del
       mov ah,40h
       int 21h
       mov ah,3eh
       int 21h
       jmp exit6			;將該學(xué)生的成績(jī)?nèi)壳辶?exit5: 
       set_p2
       show err1 
exit6:
       set_p3 
       pop dx
       pop cx
       pop bx
       pop ax
       ret
delete endp
list   proc   near
       push ax
       push bx
       push cx
       push dx
      
       clear1
       clear2
       set_p2
       show mess11
       mov dx,offset fname			;讀取score.txt
       mov al,2
       mov ah,3dh
       int 21h
       mov bx,ax
again: 								;將所有學(xué)生成績(jī)信息讀出
       mov dx,offset buffer1
       mov cx,23
       mov ah,3fh
       int 21h
       cmp ax,0
       jz p
       show_item buffer1
       jmp again
p:         							;顯示結(jié)果
       mov ah,3eh
       int 21h
       set_p3
       pop dx
       pop cx
       pop bx
       pop ax
       ret
list   endp							;結(jié)束

print  proc near
       push ax
       call openf
       mov cl,count
       mov ch,0
read2:
       mov dx,offset buffer1
       mov cx,type score
       mov ah,3fh
       int 21h
       mov cx,23h
       mov bx,0
next:  mov ah,5
       mov dl,byte ptr buffer1[bx]
       int 21h
       inc bx
       loop next
       mov ah,5
       mov dl,0dh
       int 21h
       dec x
       cmp x,0
       jnz read2
       mov bx,handle
       mov ah,3eh
       int 21h
       pop ax
       ret
print  endp

cot  proc 
       push ax
       clear2
       set_p2
       show mess12
       mov dx,offset fname
       mov ah,3dh
       int 21h
       mov bx,ax
       mov handle,ax
read0: mov dx,offset buffer2
       mov cx,23
       mov ah,3fh
       int 21h
       mov dl,[buffer2+15]
       cmp dl,'6'
       jl  five
       cmp dl,'7'
       jl  six
       cmp dl,'8'
       jl  seven
       cmp dl,'9'
       jl  eight
       inc [buffer3+4]
       jmp quit
eight:  
       inc [buffer3+3]
       jmp quit
seven: inc [buffer3+2]
       jmp quit
six:   inc [buffer3+1]
       jmp quit
five:  inc [buffer3]
quit:  cmp ax,0
       jnz read0
       mov cx,10
a:     mov dl,' '
       mov ah,2
       int 21h
       loop a 
       mov bx,0               
a0:    mov dl,[buffer3+bx]
       mov ah,2
       int 21h
       inc bx
       mov dl,' '
       mov ah,2
       int 21h
       mov dl,' '
       mov ah,2
       int 21h
       cmp bx,5
       jnz a0
       mov bx,handle
       mov ah,3eh
       int 21h
       set_p3
       pop ax
       ret
cot  endp
code   ends
       end start

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品色在线| 日韩精品成人一区二区三区 | ww久久中文字幕| 欧美一区二区不卡视频| 欧美喷潮久久久xxxxx| 欧美日韩国产不卡| 欧美精品日韩综合在线| 欧美电影一区二区三区| 正在播放亚洲一区| 制服丝袜中文字幕亚洲| 欧美日韩三级视频| 欧美一区二区三区在线看 | 亚洲欧美日韩精品久久久久| 中文字幕一区在线观看视频| 中文字幕在线不卡视频| 亚洲人成精品久久久久| 亚洲一区二区三区四区五区黄| 曰韩精品一区二区| 午夜精品免费在线| 蜜臀久久久久久久| 国内精品国产成人| 国产高清不卡一区| fc2成人免费人成在线观看播放| aa级大片欧美| 91国产免费观看| 欧美精品自拍偷拍动漫精品| 欧美一级视频精品观看| 久久精品视频一区二区| 日韩毛片高清在线播放| 亚洲高清久久久| 卡一卡二国产精品| 国产精品一品二品| 色综合天天综合网天天看片| 欧美视频在线一区| 精品国产乱码久久久久久闺蜜 | 亚洲男人的天堂在线观看| 亚洲va在线va天堂| 激情都市一区二区| 成a人片亚洲日本久久| 欧美日韩综合色| 精品久久久久久最新网址| 国产精品嫩草影院av蜜臀| 亚洲成人在线免费| 国产精品一区在线| 欧美午夜宅男影院| 久久色视频免费观看| 一区二区三区欧美日韩| 九色porny丨国产精品| www.亚洲国产| 欧美一区二区福利视频| 成人欧美一区二区三区白人| 日韩高清在线观看| 成人三级在线视频| 欧美精品三级日韩久久| 国产精品人妖ts系列视频| 午夜激情一区二区三区| 成人午夜在线免费| 91精品国产欧美日韩| 亚洲欧洲一区二区在线播放| 日韩不卡一区二区| 99re66热这里只有精品3直播 | 全国精品久久少妇| av电影在线观看一区| 日韩免费看的电影| 亚洲裸体xxx| 国产一区二区成人久久免费影院| 在线视频一区二区三区| 久久九九99视频| 午夜精品成人在线视频| 不卡视频一二三| 久久综合色8888| 午夜激情综合网| 99精品欧美一区二区三区小说 | 亚洲国产精品一区二区www| 国产99精品在线观看| 日韩一级在线观看| 亚洲在线观看免费| av一区二区不卡| 久久亚洲一级片| 免费看欧美美女黄的网站| 91精彩视频在线| 综合中文字幕亚洲| 国产成人综合网| 欧美成人综合网站| 午夜影院久久久| 91成人免费在线| 亚洲精品欧美专区| 波多野结衣中文字幕一区二区三区 | 欧美日韩高清一区| 亚洲在线成人精品| 97精品国产露脸对白| 国产偷国产偷精品高清尤物| 另类调教123区| 欧美一区二区三区日韩视频| 亚洲成人综合网站| 一本到三区不卡视频| 国产精品成人一区二区艾草 | 久久99九九99精品| 日韩一区二区三区四区| 五月婷婷久久丁香| 精品视频999| 一区二区三区四区乱视频| 99v久久综合狠狠综合久久| 国产精品卡一卡二卡三| 粉嫩av一区二区三区在线播放 | 国产亚洲一区字幕| 国产精品一区二区三区乱码| 欧美大片在线观看一区二区| 美女视频黄 久久| 日韩午夜激情电影| 精品一二线国产| 久久嫩草精品久久久精品一| 国产成人亚洲精品狼色在线| 国产午夜精品一区二区三区视频| 国产成人免费视频网站| 国产精品女主播在线观看| 99久久久久免费精品国产| 亚洲黄色在线视频| 欧美亚洲国产一卡| 香蕉乱码成人久久天堂爱免费| 欧美一区二区视频网站| 国内偷窥港台综合视频在线播放| 久久影视一区二区| av电影在线观看一区| 亚洲精品国产精华液| 欧美日韩中字一区| 久久丁香综合五月国产三级网站| 久久一留热品黄| 99国产欧美另类久久久精品| 亚洲午夜视频在线观看| 欧美一区二区三区四区高清 | 欧美人与性动xxxx| 日本va欧美va瓶| 国产亚洲一二三区| 92国产精品观看| 日韩精品电影一区亚洲| 久久久午夜精品理论片中文字幕| 不卡的av网站| 视频一区中文字幕| 国产网站一区二区三区| 日本大香伊一区二区三区| 日本不卡视频一二三区| 国产精品少妇自拍| 91国产免费观看| 精品一区中文字幕| 亚洲欧美一区二区视频| 欧美日本韩国一区二区三区视频 | 欧美综合欧美视频| 久草精品在线观看| 亚洲女人的天堂| 欧美一卡二卡三卡四卡| 91网址在线看| 久久电影国产免费久久电影| 中文字幕一区二区在线观看| 欧美一区三区四区| 99在线精品免费| 久久av老司机精品网站导航| 亚洲欧美色图小说| 久久婷婷综合激情| 欧美日韩的一区二区| 成人一区二区在线观看| 日韩不卡在线观看日韩不卡视频| 综合色天天鬼久久鬼色| 精品人在线二区三区| 欧美中文字幕不卡| 国产成人午夜片在线观看高清观看| 亚洲一区在线免费观看| 国产日韩欧美综合一区| 在线播放国产精品二区一二区四区 | 国产高清一区日本| 亚洲mv在线观看| 色婷婷综合激情| 日本成人在线电影网| 国产区在线观看成人精品| 91福利区一区二区三区| 国产成人在线色| 天天操天天干天天综合网| 久久久亚洲午夜电影| 欧美亚洲禁片免费| 国产精品一二三| 亚洲免费观看在线视频| 久久久一区二区三区| 欧美亚洲综合在线| 国产精品小仙女| 天天操天天干天天综合网| 久久综合九色综合97婷婷| 欧美群妇大交群中文字幕| av在线一区二区三区| 久久精品国产秦先生| 天堂av在线一区| 亚洲欧美日韩国产中文在线| 久久久欧美精品sm网站| 欧美羞羞免费网站| 一本一本久久a久久精品综合麻豆| 国产一区二区在线电影| 日韩精品乱码免费| 婷婷丁香激情综合| 一区二区三区在线视频播放| 中文一区二区在线观看| 国产亚洲欧洲997久久综合|