C++ OTHER

C++ 中 变量名称只能【 _ 字母 】 开头 ,后面可以用【 _ 字母 数字】
Ctrl + k Ctrl + C 所选行被注释
int 数字 char 字符 string 字符串
C + + 固 定 变 量 表 格
 
asm
 
do
 
if
 
return
 
typedef
 
auto
 
double
 
inline
 
short
 
typeld
 
bool
 
dynamic_cast
 
int
 
signed
 
typename
 
break
 
else
 
long
 
slzeof
 
union
 
case
 
enum
 
mutable
 
static
 
unsigned
 
catch
 
explicit
 
namespace
 
static_cast
 
using
 
char
 
export
 
new
 
struct
 
virtual
 
class
 
extern
 
operator
 
switch
 
vold
 
const
 
false
 
private
 
template
 
volatile
 
const_cast
 
float
 
protected
 
this
 
wchar_t
 
continue
 
for
 
public
 
throw
 
while
 
default
 
friend
 
register
 
true
 
 
delete
 
goto
 
reinterpret_cast
 
try
 
 
变量名称
 
占用内存
 
short
 
2字节
 
int
 
4字节
 
long
 
windows 4 字节,liunx 32位 4 字节 64位 8 字节
 
long long
 
8字节
 
变量名称
 
占用内存
 
数值范围
 
float
 
4字节
 
7位
 
double
 
8字节
 
15±1位
 
转义字符
 
含义
 
\n
 
换行
 
\t
 
水平制表符
 
\\
 
表示"\"
 
运算符
 
意义
 
示例
 
结果
 
+
 

 
+1
 
1
 
-
 

 
-1
 
-1
 
+
 

 
1+1
 
2
 
-
 

 
1-1
 
0
 
*
 

 
2*2
 
4
 
/
 

 
2/2
 
1
 
%
 
     
++
 
前置递增
 
   
++
 
后置递增
 
   
--
 
前置递减
 
   
--
 
后置递减
 
   
 
 
posted @ 2022-12-17 16:50  北悸安凉『鲸落』  阅读(106)  评论(0)    收藏  举报