模块用户输入-请帮助! [英] Module User Input - PLEASE HELP!

查看:66
本文介绍了模块用户输入-请帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我将使用Visual Basic制作基于文本的rpg,但是我无法弄清楚如何在模块中进行用户输入.例如,它会说您叫什么名字?:",然后在空格后输入您的姓名,然后转到一个名为name的字符串.能否请你帮忙?

hey guys,

i am going to make a text-based rpg with visual basic but i cant figure out how to do user input in the modules. such as like it would say, "What is your name?: " and then after the space, you would type in you name and it would go to a string called name. could you please help? and could you also give me an example code with the information i have just given you?

推荐答案

取决于您要执行的操作.
如果我假设这是基于控制台的Windows应用程序,那么很简单:
Depends on what you are trying to do.
If I assume that this is a console based windows app then it''s easy:
Console.Write("Please enter your name: ")
Dim userName As String = Console.ReadLine()


如果它是基于网站的系统,那么会更困难.


If it is a web site based system, then it is harder.


这篇关于模块用户输入-请帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆