作者prag222 (prag)
看板Soft_Job
標題Re: [請益] Statement VS Block
時間Thu Oct 7 22:20:52 2010
※ 引述《jpy (廣結善緣!!)》之銘言:
: 請問這兩個的差異是?
: 實在不是很了解
: 有高手可以解釋嗎?
: thx
string a="i am an idiot"; => one statement
{
string a="i am an idiot";
string b="i am a happy idiot"; => block
}
不知道有沒有錯拉....有錯請指教
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 119.77.165.6
→ howshou:括號裡面也有兩個 statements 10/07 22:59
→ howshou:其實括號外面也算一個block 10/07 23:00
→ prag222:是阿BLOCK裝STATAMENT.... 10/09 05:46
→ prag222:另外有";"結尾,才算statement吧?! 10/10 10:22