C++ 关键字
下表列出了 C++ 中的保留字。这些保留字不能作为常量名、变量名或其他标识符名称。

asm else new this
auto enum operator throw
bool explicit private true
break export protected try
case extern public typedef
catch false register typeid
char float reinterpret_cast typename
class for return union
const friend short unsigned
const_cast goto signed using
continue if sizeof virtual
default inline static void
delete int static_cast volatile
do long struct wchar_t
double mutable switch while
dynamic_cast namespace template

 

 1 #include <iostream>
 2 
 3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
 4 using namespace std;
 5 int main(int argc, char** argv) {
 6     char c;
 7     c=getchar();
 8     putchar(c+32);
 9     putchar('\n');
10     return 0;
11 }

 

相关文章:

  • 2022-02-04
  • 2022-12-23
猜你喜欢
  • 2021-09-07
  • 2021-11-16
  • 2022-01-07
  • 2021-06-05
相关资源
相似解决方案