什么是C ++中的分号? [英] What is the semicolon in C++?
本文介绍了什么是C ++中的分号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
用C ++大致来说是:
Roughly speaking in C++ there are:
- 操作员(
+
,-
,*
,[]
,new
,...
) - 标识符(类名,变量,函数等)
- const常量(
10
,2.5
,"100"
,...) - 一些关键字(
int
,class
,typename
,mutable
,...) - 括号(
{
,}
,<
,>
) - 预处理器(
#
,##
...).
- operators (
+
,-
,*
,[]
,new
,...
) - identifiers (names of classes, variables, functions,...)
- const literals (
10
,2.5
,"100"
, ...) - some keywords (
int
,class
,typename
,mutable
, ...) - brackets (
{
,}
,<
,>
) - preprocessor (
#
,##
...).
但是什么是分号?
推荐答案
分号是标点符号,请参见2.13§1
The semicolon is a punctuator, see 2.13 §1
C ++程序的词汇表示包括许多预处理标记,这些标记用于预处理程序的语法,或者将其转换为运算符和标点符号
这篇关于什么是C ++中的分号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文