c# 用C#编写控制台应用程序,使他输出"a";例如:string s="ab";console.writeline(s);输出是ab,现在如何改写使他输出为"ab"; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你是要输出a吧?可以用substring来解决。string s = "ab";s=s.Substring(0, 1);console.writeline(s); static void Main(string[] args) { string str = "\"ab\""; Console.WriteLine(str); Console.ReadLine(); } 在引用里添加引用没有System.Configuration 求c# 正则获取网页图片 C#改变按钮的颜色 IShellBrowser接口问题 c#调用delphi开发的webservice接口,中文返回值为乱码(一个汉字返回???),如何进行转换? winform下试用get和post请大大们指教 请教c#高手问题? 为什么不能实例化? 使用 API 函数 FindWindowEx()时,怎么知道我想搜索的窗口的类名? winform DataGrid 列宽度 如何设置? SVN在C#怎么用? 我的c#项目如何重建呀,现在只要添加窗体就报错?(我想重建一下)
string s = "ab";
s=s.Substring(0, 1);
console.writeline(s);
static void Main(string[] args)
{
string str = "\"ab\""; Console.WriteLine(str); Console.ReadLine();
}