汇编中的输出问题
目前我的代码是这样的。
resultLbl BYTE "Coin Information", 0
sum BYTE "Number of Coins: ", 0
NumberOfDollars BYTE "Dollars: ", 0
NumberOfCents BYTE "Cents: ", 0
dtoa sum, ebx ; convert to ASCII characters
dtoa NumberOfDollars, ecx ; convert to ASCII characters
dtoa NumberOfCents, edx ; convert to ASCII characters
output resultLbl, sum ; output label and sum
我遇到了一个问题,因为我希望它的输出方式是一个窗口,但有 3 个不同的行。我不知道如何在三个单独的行上输出。 这是我希望输出的样子。
硬币信息
硬币数量:50
美元数量:5
美分数量:30
有人能帮忙吗?这真让我烦恼
Currently my code is this.
resultLbl BYTE "Coin Information", 0
sum BYTE "Number of Coins: ", 0
NumberOfDollars BYTE "Dollars: ", 0
NumberOfCents BYTE "Cents: ", 0
dtoa sum, ebx ; convert to ASCII characters
dtoa NumberOfDollars, ecx ; convert to ASCII characters
dtoa NumberOfCents, edx ; convert to ASCII characters
output resultLbl, sum ; output label and sum
I'm having an issue because the way I want it to output is a single window, but 3 different lines. I don't know how to output on three seperate lines.
Here is how I would like my output to look.
Coin Information
Number of Coins: 50
Number of Dollars: 5
Number of Cents: 30
Can anyone help? This is really bugging me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在终止字符串,不带任何附加字符。
试试这个:
You are terminating your strings with no additional character.
Try this: