From 7c7d73296c47094a13e4f82ca4d507b7b4b2c39f Mon Sep 17 00:00:00 2001 From: 24OI-bot <15963390+24OI-bot@users.noreply.github.com> Date: Tue, 3 Sep 2019 07:14:35 -0400 Subject: [PATCH] style: format markdown files with remark-lint --- docs/lang/basic.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/lang/basic.md b/docs/lang/basic.md index c6022b77..13bc4bd5 100644 --- a/docs/lang/basic.md +++ b/docs/lang/basic.md @@ -39,7 +39,7 @@ int main() { 以 `//` 开头,行内位于其后的内容全部为注释。 2. 注释块 - + 以 `/*` 开头, `*/` 结尾,中间的内容全部为注释,可以跨行。 注释对程序运行没有影响,可以用来解释程序的意思。 @@ -121,16 +121,16 @@ int main() { } ``` -其中, `%d` 表示读入/输出的变量是一个有符号整型 (`int` 型) 的变量。 +其中, `%d` 表示读入/输出的变量是一个有符号整型 ( `int` 型)的变量。 类似地: 1. `%s` 表示字符串。 2. `%c` 表示字符。 3. `%lf` 表示浮点数。 -4. `%lld` 表示长整型 (`long long`)。根据系统不同,也可能是 `%I64d` 。 -5. `%u` 表示无符号整型 (`unsigned int`) 。 -6. `%ull` 表示无符号长整型 (`unsigned long long`)。 +4. `%lld` 表示长整型 ( `long long` )。根据系统不同,也可能是 `%I64d` 。 +5. `%u` 表示无符号整型 ( `unsigned int` )。 +6. `%ull` 表示无符号长整型 ( `unsigned long long` )。 特殊地,还有一些控制格式的方式: @@ -142,18 +142,18 @@ int main() { ??? note "什么是 \n?" `\n` 是一种 **转义字符** ,表示换行。 - + 常用的转义字符还有: - - 1\. `\t` 表示制表符。 - - 2\. `\\` 表示 `\` 。 - - 3\. `\"` 表示 `"` 。 - - 4\. `\0` 表示空字符,用来表示 C 风格字符串的结尾。 - - 5\. `\r` 表示回车。Linux 中换行符为 `\n` ,Windows 中换行符为 `\r\n` 。在 OI 中,如果输出需要换行,使用 `\n` 即可。但读入时,如果需要读入换行符,使用逐字符读入可能造成一些问题,需要注意。 + + 1. `\t` 表示制表符。 + + 2. `\\` 表示 `\` 。 + + 3. `\"` 表示 `"` 。 + + 4. `\0` 表示空字符,用来表示 C 风格字符串的结尾。 + + 5. `\r` 表示回车。Linux 中换行符为 `\n` ,Windows 中换行符为 `\r\n` 。在 OI 中,如果输出需要换行,使用 `\n` 即可。但读入时,如果需要读入换行符,使用逐字符读入可能造成一些问题,需要注意。 ## 一些扩展内容 -- 2.11.0