这个简单的命令是什么意思 [英] what is the meaning of this simple command
本文介绍了这个简单的命令是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我想知道此命令的含义是:"\\"
谢谢
Hi, I wonder, what is the meaning of this command: ''\\''
Thanks
推荐答案
这不是命令.
它是一个字符(因此带有单引号字符),它是一个反斜杠字符.
在字符串和字符文字中,为了输入无法键入或可能引起混淆的特殊字符,您可以使用特殊字符作为序列介绍器(反斜杠字符),并提示编译器将下一个字符用作特殊的
字符,而不是按原样解释.
例如,如果要在字符文字中输入单引号字符,那么''''的含义并不那么明显:因此您输入它
作为
It isn''t a command.
It is a single character (hence the single quote characters) which is a single backslash character.
In strings and character literals, in order to enter special characters which can''t be typed or which might be confusing, you use a special character as a sequence introducer - the backslash character, and that telkls the compiler to take teh next character as a special
character rather than interpret it as is.
For example, if you want to enter a single quote character in a character literal, it is not that obvious what '''''' means: so you enter it
as
'\''
' Start of character lieteral
\ Start of special character sequence
' Insert a single quote character
' End of character literal
要插入反斜杠字符,请在其前面加上另一个反斜杠字符作为序列介绍器.
常见序列包括:
To insert a backslash character, you prefix it with another backslash character as the sequence introducer.
Common sequences include:
\\ Back slash
\' Single quote
\" Double quote
\n Newline
\r Return
\t Tab
我不符合您的要求,但"//"是C和笑脸语言中的转义字符.
有关转义字符的更多详细信息,请查看此链接
转义序列字符 [
I m not conform that for what u r asking but "//" is Escape sequences Character in C and smiler language.
For more detail about Escape sequences Character look this link
Escape sequences Character[^]
这篇关于这个简单的命令是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文