[求助][讨论]从键盘输入字符串怎么和已有串相加,并输出?
各位高手们多多关照。由于出学,问题容易的大家不要见笑。大家多多指导!!!~~~~
要求是输出‘what's your name?'然后从键盘输入“~~~~(名字)” 然后在输出‘my name is ~~~'
程序如下:
data segment
string db "what's your name?$"
dat1 sb 20,?,20 duo(0)
data ends
code segment
assume cs:code,ds:data
start : mov ax,data
mov ds,ax
lea dx,string
mov ah,9
int 21h
mov ah,4ch
int 21h
lea dx,dat1
mov ah,0ah
int 21h
mov ah,4ch
int 21h
code ends
end start
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~完~~~~~~~~~
希望大家帮帮忙,多多指教