【发布时间】:2012-08-12 16:27:28
【问题描述】:
我正在写一个成绩计算器,最后我问用户是否还有其他成绩要计算。
Console.Write("Do you have another grade to calculate? ");
moreGradesToCalculate = Console.ReadLine();
moreGradesToCalculate = moreGradesToCalculate.ToUpper();
我想显示一个带有是或否选项的对话框。
如果 DialogResult 为 Yes,我希望能够再次运行该程序,如果结果为 No,则执行其他操作。
【问题讨论】:
标签: c#