Download - 明解 C++ 教學手冊 柴田望洋 博士 著
Transcript
-
C++
-
ifswitch
-
if ()
-
if () (condition)truefalse(boolean literal)bool
-
if ()if() else truefalse
-
(equality)==!=
-
!(logical negative operator)
-
ififif
-
(expression)c + 32a = c + 32(evaluation)
-
(expression statement)
(null statement)
-
&&||(logical operator)
-
&&x&&yxy
|| x||yxy
-
if
-
(conditional operator)(conditional expression)
-
(algoruthm)
-
{ }(block)(compound statement)
-
(sort)
-
if
-
%
-
switch
-
switchcase1:(label)breakswitch
-
casedefault:
-
ifswitchswitchifswitch(selection statement)
-
(keyword)
-
(alternative representation)
-
(identifier)
-
(punctuator)
-
(precedence)
(associativity)
-
boolbool0true0falseif
-
if~elseswitchswitchbreakcasedefaultswitchbreakifswitchifswitchifswitch{ }0typexy{ type t = x; x = y; y = t; }
- typexy(x