📄 chars.html
字号:
<html lang="en">
<head>
<title>Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.3">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
</head>
<body>
<div class="node">
<p>
Node:<a name="Chars">Chars</a>,
Previous:<a rel="previous" accesskey="p" href="Strings.html#Strings">Strings</a>,
Up:<a rel="up" accesskey="u" href="Characters.html#Characters">Characters</a>
<hr><br>
</div>
<h5 class="subsubsection">Characters</h5>
<p>A single character may be written as a single quote immediately
followed by that character. The same escapes apply to characters as
to strings. So if you want to write the character backslash, you
must write <kbd>'\\</kbd> where the first <code>\</code> escapes the second
<code>\</code>. As you can see, the quote is an acute accent, not a
grave accent. A newline
immediately following an acute accent is taken as a literal character
and does not count as the end of a statement. The value of a character
constant in a numeric expression is the machine's byte-wide code for
that character. <code>as</code> assumes your character code is ASCII:
<kbd>'A</kbd> means 65, <kbd>'B</kbd> means 66, and so on.
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -