抱歉,剛剛有點打錯,我直接回覆一下
假如你要把已經寫好得程式碼貼上
先到Linux上輸入
vi xxx.cpp <---xxx.cpp是你想要的名稱
(這時候xxx.cpp打開是空白的)
接著在vi的畫面中直接輸入
:set noautoindent (前面的:也要輸入)
然後按下enter (此時設定完成)
接著按i進入--Insert--模式
然後把你原本的程式碼貼上即可
--
▊ ◥ thePainter. ◤ ▎
▊ ◣◢ ◣ ◤ ◣ ◤ ▎
▊ ◥◤ ◣ ◤ ◤ ▎ http://www.wretch.cc/blog/myelf
▊ ◥ ◢ ◤ ◤ ◤ ▎ Wretch@BBS -> P_myelf
▊ ◢◤ thePainter. ◣ ▎ φthePainter.
--
假如你要把已經寫好得程式碼貼上
先到Linux上輸入
vi xxx.cpp <---xxx.cpp是你想要的名稱
(這時候xxx.cpp打開是空白的)
接著在vi的畫面中直接輸入
:set noautoindent (前面的:也要輸入)
然後按下enter (此時設定完成)
接著按i進入--Insert--模式
然後把你原本的程式碼貼上即可
--
▊ ◥ thePainter. ◤ ▎
▊ ◣◢ ◣ ◤ ◣ ◤ ▎
▊ ◥◤ ◣ ◤ ◤ ▎ http://www.wretch.cc/blog/myelf
▊ ◥ ◢ ◤ ◤ ◤ ▎ Wretch@BBS -> P_myelf
▊ ◢◤ thePainter. ◣ ▎ φthePainter.
--
All Comments