2 回答

TA貢獻(xiàn)1839條經(jīng)驗(yàn) 獲得超15個(gè)贊
你尚未確認(rèn)你所使用的語(yǔ)言范疇
ANSI C一共只有38個(gè)關(guān)鍵字:
英文釋義 auto break case char const(C90標(biāo)準(zhǔn)新增) continue
default do double else enum(C90標(biāo)準(zhǔn)新增) extern
float for goto if inline int
long register restrict return short signed(C90標(biāo)準(zhǔn)新增)
sizeof static struct switch typedef union
unsigned void(C90標(biāo)準(zhǔn)新增) volatile(C90標(biāo)準(zhǔn)新增) while _Bool(C99新增) _Complex(C99新增)
_Imaginary(C99新增) _Generic(C11新增)

TA貢獻(xiàn)1876條經(jīng)驗(yàn) 獲得超6個(gè)贊
這是C++不是C.
最常用的是 using namespace std;
若沒(méi)有這行.
cout << x;
就要寫(xiě) std::cout << x;
早期 #include<iostream.h> 還沒(méi)有 namespace,
後來(lái)改成 #include<iostream>, 就有 namespace了. 不寫(xiě)using會(huì)比較羅唆.
- 2 回答
- 0 關(guān)注
- 605 瀏覽
添加回答
舉報(bào)