Re: [問題] 檢查保留字的程式
※ 引述《slayer.bbs@bbs.wretch.cc (foolish)》之銘言:
: 這是什麼鬼, 為什麼有二個同樣名字的class
: 這不是java啊...
哪裡有一樣的名字?
一個是 test, 一個是 text
: > class text(){
這邊多括號吧…
C++ 也不能這樣寫的
btw, 有時候我也會把 test 跟 text 搞混
結論是以後不要同時使用這兩個名字…
有一定的機率不會通過檢定 :Q
edited:
剛剛仔細看了一下,還有 c'tor 不能是 static 吧?
static 初始化應該寫成 static{
}
--
Nobody can take anything away from him.
Nor can anyone give anything to him.
What came from the sea,
has returned to the sea.
Chrono Cross
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.132.128.238
※ 編輯: godfat 來自: 220.132.128.238 (04/05 16:58)
討論串 (同標題文章)