include irvine32.inc
.data

outputstring BYTE "Enter your ID (Length=6) : ",0	
inputstring BYTE 7 DUP(?)
outputstring2 BYTE "Your ID is ",0

.code
main proc

	mov		edx,OFFSET outputstring
	call	WriteString
	
	mov		edx,OFFSET inputstring
	mov		ecx,SIZEOF inputstring
	call	ReadString
	
	mov		edx,OFFSET	outputstring2
	call	WriteString
	
	mov		edx,OFFSET inputstring
	call	WriteString	
	exit
	
main endp
end main

배열이 동적이지 못하다는 것이 아쉽다.

Posted by 공돌이pooh
,