CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Feb 2006
    Posts
    3

    Unhappy input and output strings

    hi, can someone please help me in my program. I'm new to the debug.com environment and our prof are lame in teaching it.

    I would like to create a program where i can input a string(like my name) (Please enter your name) and the output would be (hello (my name) )

    here is the code that i make, but i feel like something is missing, kindly please help me.

    a200
    db 0d,0a,"Please enter your name: $"

    a300
    db 0d,0a,"Hello $"

    a100
    mov ah,09
    mov dx,200
    int 21

    mov ah,0a
    int 21

    mov ah,09
    mov dx,300
    int 21
    int 20

    i want the program to be:
    Please enter your name: mark
    Hello mark!

    *I know something is missing in the string input but i don't know what.. Help please...
    Last edited by quicksilver_1931; February 9th, 2006 at 05:25 AM. Reason: placing an icon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured