Tag: 控制台 应用程序

使用switch case语句的问题

我的代码如下。 基本上,我正在读取excel文件并将其内容存储到对象数组中。 然后,我使用switch case语句来执行不同的操作。 检查下面的代码: – using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data; using System.Drawing; using System.ComponentModel; using Excel = Microsoft.Office.Interop.Excel; using Microsoft.Office.Interop.Excel; namespace Excel1 { class Program { public static void Main(string[] args) //public void ExcelOps() { //string str; Excel.Application xlApp = new Excel.Application(); Excel.Workbook xlWorkbook = xlApp.Workbooks.Open(@”D:/WebServiceTemplate.xlsx”); Excel._Worksheet […]

Console.ReadLine(“默认文本可编辑文本在线”)

有没有办法实现这个目标? 我想传递一些文本并让它出现在输入行 – 而不是“ 输入你的名字: ”,我想要“ 输入你的名字:默认可编辑文本 ”