Learn C: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 17: Line 17:
got trouble
got trouble


  cc -help
  cc --help

Revision as of 23:02, 27 October 2004

編譯C語言

install gcc package of cygwin

place all *.c to c:\cygwin\c

execute Cygwin Bash Shell

cd /c
cc filename.c (will compile filename.c, and generate a.exe)
./a.exe   (or ./a ) (show the reult)

How can I copy and paste into Cygwin console windows?

解決策略:開始 -> 所有程式 -> Cygwin -> Cygwin Bash Shell 按滑鼠右鍵 -> 內容 -> 選項分頁 -> 勾選快速編輯模式(Quick edit mode) Source: Cygwin copy and paste


got trouble

cc --help