说明:
◆首先显示出原始的两个字符串
◆然后从键盘输入将要插入的位置,用数字表示
◆最后输出插入后形成的字符串
源程序:
DATA SEGMENT
DA0 DB 0DH,0AH,'$'
DA1 DB 'Please enter the first string.'
DB 0DH,0AH,'$'
DA2 DB 'Please enter the second string.'
DB 0DH,0AH,'$'
DA3 DB 'Please enter the location in the first string you want to insert in.'
DB 0DH,0AH,'$'
DA4 DB 50H
DB ?
DB 50H DUP('$')
DA5 DB 50H
DB ?
DB 50H DUP('$')
DA6 DB 10H
DB ?
DB 10H DUP('$')