到底哪些不能用?C++环境下的63个保留字(附图)

2 篇文章 0 订阅

A-D

  • asm
  • auto
  • bool(布尔值)
  • break(跳出循环)
  • case(用于分支语句)
  • catch
  • char(字符)
  • class
  • const
  • const_cast
  • continue(结束循环)
  • default(默认,用于分支语句)
  • delete(删除)
  • do
  • double(双浮点)
  • dynamic_cast

E-M

  • else(否则)
  • enum
  • explicit
  • export
  • extern
  • false(假)
  • float(浮点)
  • for(循环)
  • friend
  • goto
  • if(若,单分支语句)
  • inline
  • int(整数)
  • long(长整数)
  • mutable

N-S

  • namespace
  • new
  • operator
  • private
  • protected
  • public
  • register
  • reinterpret_cast
  • return
  • short(短整数)
  • signed(带符号的)
  • sizeof(...的大小)
  • static
  • static_cast
  • struct
  • switch(多分支语句)

T-W

  • template
  • this
  • throw
  • true(真)
  • try
  • typedef
  • typeid
  • typena
  • union
  • unsigned(无符号的)
  • using
  • virtual
  • void
  • volatile
  • wchar_t
  • while(当...时)

X-Z(暂无)

  • (不存在X,Y,Z开头的保留字)

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值