4
我試圖在Ubuntu上的Mono平臺上開發。 但我得到了我的第一個應用程序:) 這裏的麻煩是代碼:在Ubuntu Console.ReadLine上的Monodevelop不起作用
using System;
using System.Threading;
namespace threadings
{
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("The start");
string x=Console.ReadLine();
Console.WriteLine(x);
Console.WriteLine ("the end");
}
}
}
這裏是結果:
The start the end
而且它們之間沒有任何字符串,沒有從控制檯讀取發生,我不能輸入任何東西。問題是什麼?也許我做錯了什麼?
我的環境:
Ubuntu: Linux nozim-desktop 2.6.32-32-generic-pae MonoDevelop: version: 2.2.1 Build date: 2010-03-09 16:12:25+0000
哇上運行,謝謝,我會盡力:) – Nozim
想補充一點,我是能夠運行'的ReadLine()'用新鮮的安裝MonoDevelop中的默認控制檯就好了,我想他們固定了一些東西。 – lakesare