Re: [問題] 黃鐘楊老師的作業
※ 引述《vacahung (孤獨的一匹狼)》之銘言:
: 1. Describe your programming environment for this class, including “
: Operating System (OS)”, “editor”, “compiler (program name and version)”
: and “debugger”.
: 要怎麼得知自己的editor、compiler、debuggrt的版本阿?
這個應該要看自己用什麼compiler了
Dev C++應該算蠻長看到的一種
直接到Bloodshed的網站查就可以了
如果用MS社的.NET
也可以用網站或系統查詢就可以知道自己用第幾版了
: 3. Write a “shortest” C++ program. No compilation error or warning is
: allowed. How many characters are in this program?
: 怎樣的東西才算一個character?
要看你寫的程式吧
我想應該是根據ASCII的算法
: 4. For the code in Problem (2), please try to insert ‘;’, ‘,’, “{ }”,
: and “( )” in different places (Note: there can be codes between ‘{’ and ‘
: }’, or ‘(’ and ‘)’). Some of the insertions will cause compilation error
: or warning, and some don’t (but may change the program output). Please
: experiment and write down your observation. Give some explanations by your
: intuition.
: 他到底是想要我們幹嘛?自己亂加東西,然後說會有啥結果嗎?要把自己家的東西寫出來嗎?
應該是一個自己試試看的問題吧
試試看完了之後自己解釋為什麼(我猜意思是人工compiler)
自己可以試著debug...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.193.24.72
推
09/27 01:16, , 1F
09/27 01:16, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):