Считывание ответа

Язык C#
  1. 9 месяцев(а)

    Как сделать в вопросе, где нужно ввести ответ сделать считывание ответа?

  2. link text

  3. Unfortunately C# does not have anything like that, you will have to make one yourself. But, you can try referencing Microsoft.VisualBasic.dll.

    Then using the code below.

    Microsoft.VisualBasic.Interaction.InputBox("Question?","Title","Default Text");
    Alternatively, by adding a using directive allowing for a shorter syntax in your code (which I'd personally prefer).

    using Microsoft.VisualBasic;
    Interaction.InputBox("Question?","Title","Default Text");
    Or you can do what Pranay Rana suggests, that's what I would've done too...


или зарегистрируйтесь чтобы ответить