Which ones cannot be used? 63 reserved words in C++ environment (with pictures)

A-D

  • asm
  • auto
  • bool (Boolean value)
  • break (break out of the loop)
  • case (for branch statements)
  • catch
  • char (character)
  • class
  • const
  • const_cast
  • continue (end loop)
  • default (default, used for branch statements)
  • delete
  • do
  • double (double floating point)
  • dynamic_cast

E-M

  • else (else)
  • enum
  • explicit
  • export
  • extern
  • false(false)
  • float
  • for (loop)
  • friend
  • goto
  • if (if, single branch statement)
  • inline
  • int (integer)
  • long (long integer)
  • mutable

N-S

  • namespace
  • new
  • operator
  • private
  • protected
  • public
  • register
  • reinterpret_cast
  • return
  • short (short integer)
  • signed (signed)
  • sizeof (size of...)
  • static
  • static_cast
  • struct
  • switch (multi-branch statement)

T-W

  • template
  • this
  • throw
  • true
  • try
  • typedef
  • typeid
  • typena
  • union
  • unsigned (unsigned)
  • using
  • virtual
  • void
  • volatile
  • wchar_t
  • while (when...)

XZ( None yet)

  • (There are no reserved words starting with X, Y, Z)

Guess you like

Origin blog.csdn.net/m0_54909552/article/details/131638803