📄 keywords.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <meta name="generator" content="HTML Tidy for Linux/x86 (vers 1st October 2002), see www.w3.org"> <title>C/C++ Keywords</title> </head> <body bgcolor="#ffffff"> <table width="100%" bgcolor="#eeeeff"> <tr> <td><a href="index.html">cppreference.com</a> -> C/C++ Keywords</td> </tr> </table> <h3>C/C++ Keywords</h3> <table> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#asm">asm</a></td> <td>insert an assembly instruction</td> </tr> <tr> <td><a href="keywords_details.html#auto">auto</a></td> <td>declare a local variable</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#bool">bool</a></td> <td>declare a boolean variable</td> </tr> <tr> <td><a href="keywords_details.html#break">break</a></td> <td>break out of a loop</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#case">case</a></td> <td>part of a <a href="keywords_details.html#switch">switch</a> statement</td> </tr> <tr> <td><a href="keywords_details.html#catch">catch</a></td> <td>handles <a href="keywords_details.html#throw">thrown</a> exceptions</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#char">char</a></td> <td>declare a character variable</td> </tr> <tr> <td><a href="keywords_details.html#class">class</a></td> <td>declare a class</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#const">const</a></td> <td>declare immutable data</td> </tr> <tr> <td><a href="keywords_details.html#const_cast">const_cast</a></td> <td>cast from const variables</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#continue">continue</a></td> <td>bypass iterations of a loop</td> </tr> <tr> <td><a href="keywords_details.html#default">default</a></td> <td>default handler in a <a href="keywords_details.html#case">case</a> statement</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#delete">delete</a></td> <td>free memory</td> </tr> <tr> <td><a href="keywords_details.html#do">do</a></td> <td>looping construct</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#double">double</a></td> <td>declare a double precision floating-point variable</td> </tr> <tr> <td><a href="keywords_details.html#dynamic_cast">dynamic_cast</a></td> <td>perform runtime casts</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#else">else</a></td> <td>alternate case for an <a href="keywords_details.html#if">if</a> statement</td> </tr> <tr> <td><a href="keywords_details.html#enum">enum</a></td> <td>create enumeration types</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#explicit">explicit</a></td> <td>only use constructors when they exactly match</td> </tr> <tr> <td><a href="keywords_details.html#extern">extern</a></td> <td>tell the compiler about variables defined elsewhere</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#false">false</a></td> <td>the boolean value of false</td> </tr> <tr> <td><a href="keywords_details.html#float">float</a></td> <td>declare a floating-point variable</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#for">for</a></td> <td>looping construct</td> </tr> <tr> <td><a href="keywords_details.html#friend">friend</a></td> <td>grant non-member function access to private data</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#goto">goto</a></td> <td>jump to a different part of the program</td> </tr> <tr> <td><a href="keywords_details.html#if">if</a></td> <td>execute code based off of the result of a test</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#inline">inline</a></td> <td>expand a call to a function rather than calling that function</td> </tr> <tr> <td><a href="keywords_details.html#int">int</a></td> <td>declare a integer variable</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#long">long</a></td> <td>declare a long integer variable</td> </tr> <tr> <td><a href="keywords_details.html#mutable">mutable</a></td> <td>override a const variable</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#namespace">namespace</a></td> <td>partition the global namespace by defining a scope</td> </tr> <tr> <td><a href="keywords_details.html#new">new</a></td> <td>allocate dynamic memory for a new variable</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#operator">operator</a></td> <td>create overloaded operator functions</td> </tr> <tr> <td><a href="keywords_details.html#private">private</a></td> <td>declare private members of a class</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#protected">protected</a></td> <td>declare protected members of a class</td> </tr> <tr> <td><a href="keywords_details.html#public">public</a></td> <td>declare public members of a class</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#register">register</a></td> <td>request that a variable be optimized for speed</td> </tr> <tr> <td><a href="keywords_details.html#reinterpret_cast">reinterpret_cast</a></td> <td>change the type of a variable</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#return">return</a></td> <td>return from a function</td> </tr> <tr> <td><a href="keywords_details.html#short">short</a></td> <td>declare a short integer variable</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#signed">signed</a></td> <td>modify variable type declarations</td> </tr> <tr> <td><a href="keywords_details.html#sizeof">sizeof</a></td> <td>return the size of a variable or type</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#static">static</a></td> <td>create permanent storage for a variable</td> </tr> <tr> <td><a href="keywords_details.html#static_cast">static_cast</a></td> <td>perform a nonpolymorphic cast</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#struct">struct</a></td> <td>create a new structure</td> </tr> <tr> <td><a href="keywords_details.html#switch">switch</a></td> <td>execute code based off of different possible values for a variable</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#template">template</a></td> <td>create generic functions</td> </tr> <tr> <td><a href="keywords_details.html#this">this</a></td> <td>a pointer to the current object</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#throw">throw</a></td> <td>throws an exception</td> </tr> <tr> <td><a href="keywords_details.html#true">true</a></td> <td>the boolean value of true</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#try">try</a></td> <td>execute code that can <a href="keywords_details.html#throw">throw</a> an exception</td> </tr> <tr> <td><a href="keywords_details.html#typedef">typedef</a></td> <td>create a new type name from an existing type</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#typeid">typeid</a></td> <td>describes an object</td> </tr> <tr> <td><a href="keywords_details.html#typename">typename</a></td> <td>declare a class or undefined type</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#union">union</a></td> <td>a structure that assigns multiple variables to the same memory location</td> </tr> <tr> <td><a href="keywords_details.html#unsigned">unsigned</a></td> <td>declare an unsigned integer variable</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#using">using</a></td> <td>used to import a <a href="keywords_details.html#namespace">namespace</a></td> </tr> <tr> <td><a href="keywords_details.html#virtual">virtual</a></td> <td>create a function that can be overridden by a derived class</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#void">void</a></td> <td>declare functions or data with no associated data type</td> </tr> <tr> <td><a href="keywords_details.html#volatile">volatile</a></td> <td>warn the compiler about variables that can be modified unexpectedly</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="keywords_details.html#wchar_t">wchar_t</a></td> <td>declare a wide-character variable</td> </tr> <tr> <td><a href="keywords_details.html#while">while</a></td> <td>looping mechanism</td> </tr> </table> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -