sublime text 2 寫c++,無法 cin? - MAC

Table of Contents

網路上說sublime text 2 是神兵利器...
下載安裝後,用一個簡單的hello world,可以執行:
但以下卻有問題:
int a;
cin >> a;
cout << a << "hello world" ;
在我run這個code之後,卻只直接顯示出hello world而已,它不給我cin值...
請問有解嗎...?

--

All Comments

Thomas avatarThomas2012-11-25
似乎是沒支援,我比較苦惱的是code hint/auto complete
搞不定
James avatarJames2012-11-27
我是指completesharp, 我想把它跟unity關連Orz...
Thomas avatarThomas2012-12-01
剛剛突然可以讓他關連了 cin,應該是沒有簡單的解法
Robert avatarRobert2012-12-06
謝謝樓樓上and樓上...囧
Frederica avatarFrederica2012-12-11
其實mac上我比較推coderunner 不過它的自動完成很糟糕
但是基本上要寫什麼小東西都很方便