.
\n -
\t -
\v -
\b (\) -
\r -
\f -
\a - ()
\' -
\" -
\\ -
/B -
\ddd -ASCII
\xdd - ASCII
// (/* */) -
! (NOT)
~
+
- ,
*
/
%
<<
>>
<
<=
>
>=
==
!=
& ,
|
^
&& (and)
|| (or)
' ()
?:
++
--
=
+=
-=
*=
/=
%=
>>=
<<=
&=
|=
^=
height -
width
depth
sum
( ) #include math.h.
fabs(x) | |
atan(x) | A () |
floor(x) | double |
log(x) | |
pow(x,y) | x y |
sqrt(x) | |
sin(x) | () |
os(x) | () |
exp(x) |
%c | char |
%s | |
%d | int |
%u | unsigned int |
%ld | long( ) |
%f | float/double( ) |
%e | float/double( ) |
%lu | unsigned long |
%g | float/double( f ) |
%lf | long double ( ) |
%le | long double( ) |
%lg | long double( f ) |
, ++ ++ . 1, 1. : . , , :
x++, x-- ;
++x, --x .
.
:
|
|
if(<>) <1>; else <2>.
if, else - (. . , -); <> - (, a>b, c<=d, f==1); <1> <2>? C++.
: , <1> ; , <2> . , : <1>, <2>.
, . , . , , . :
if (c>0) { s=s+c; k=k+1; } else c=c-1;
, . :
switch (<>)
{
case <_1>: <>;
case <_2>: <>;
...
case <_n>: <>;
[default: <>;]
}
switch, case, default (. .: , , ); <> ; <_1>, <_2>, <_n> , <>; <> ++.
<>. . , , , , . , , break, switch ( ). , , default. default , , switch.
C++ , . , . . :
goto <>
goto - (.: []).
- . -, , . ++ . .
|
|
:
do <> while(<>)
do,while (. .: );
<> ++, ( );
<> , .
: , , , , . , , . , , . , , .