自学C/C++

第一章、语言标准

        参考网站:cppreference.com

        C++标准有   C++11,C++14,C++17,C++20,C++23,C++26

        C   标准有    C89,C95,C99,C11,C17,C23

        注意:相应的语言标准需要编译器支持。

第二章、关键字

       

C语言关键字
alignas (C23)externsizeof_Alignas (C11)
alignof (C23)false (C23)static_Alignof (C11)
autofloatstatic_assert (C23)_Atomic (C11)
bool (C23)forstruct_BitInt (C23)
breakgotoswitch_Bool (C99)
caseifthread_local (C23)_Complex (C99)
charinline (C99)true (C23)_Decimal128 (C23)
constinttypedef_Decimal32 (C23)
constexpr (C23)longtypeof (C23)_Decimal64 (C23)
continuenullptr (C23)typeof_unqual (C23)_Generic (C11)
defaultregisterunion_Imaginary (C99)
dorestrict (C99)unsigned_Noreturn (C11)
doublereturnvoid_Static_assert (C11)
elseshortvolatile_Thread_local (C11)
enumsignedwhile
C++关键字
A – CD – PR – Z
alignas (C++11)decltype (C++11)reflexpr (reflection TS)
alignof (C++11)default (1)register (2)
anddelete (1)reinterpret_cast
and_eqdorequires (C++20)
asmdoublereturn
atomic_cancel (TM TS)dynamic_castshort
atomic_commit (TM TS)elsesigned
atomic_noexcept (TM TS)enum (1)sizeof (1)
auto (1) (2) (3) (4)explicitstatic
bitandexport (1) (3)static_assert (C++11)
bitorextern (1)static_cast
boolFALSEstruct (1)
breakfloatswitch
casefor (1)synchronized (TM TS)
catchfriendtemplate
chargotothis (4)
char8_t (C++20)if (2) (4)thread_local (C++11)
char16_t (C++11)inline (1)throw
char32_t (C++11)intTRUE
class (1)longtry
complmutable (1)typedef
concept (C++20)namespacetypeid
constnewtypename
consteval (C++20)noexcept (C++11)union
constexpr (C++11)notunsigned
constinit (C++20)not_equsing (1)
const_castnullptr (C++11)virtual
continueoperator (4)void
co_await (C++20)orvolatile
co_return (C++20)or_eqwchar_t
co_yield (C++20)private (3)while
protectedxor
publicxor_eq
(1) — meaning changed or new meaning added in C++11.
(2) — meaning changed or new meaning added in C++17.
(3) — meaning changed or new meaning added in C++20.
(4) — new meaning added in C++23.

    

        

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值