From dc8faa7760d56aaa860bf6ac7a5e9dd4a24b6e1f Mon Sep 17 00:00:00 2001 From: FeignClaims Date: Thu, 24 Oct 2024 11:46:29 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=A7=A3=E9=87=8A=20char=20=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E6=98=AF=E6=9C=89=E7=AC=A6=E5=8F=B7=E6=95=B0=E6=88=96?= =?UTF-8?q?=E6=97=A0=E7=AC=A6=E5=8F=B7=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- faq/basic_concepts/type_conversion.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/basic_concepts/type_conversion.rst b/faq/basic_concepts/type_conversion.rst index a239bf07..ac8c2067 100644 --- a/faq/basic_concepts/type_conversion.rst +++ b/faq/basic_concepts/type_conversion.rst @@ -66,7 +66,7 @@ - 非 0 -> :cpp:`true`. - 0 -> :cpp:`false`. - - :cpp:`char` 类型可能采用 :cpp:`signed char` 或 :cpp:`unsigned char` 的表示方式; 但 :cpp:`char` 是独立的类型, 不是 :cpp:`signed char` 类型, 也不是 :cpp:`unsigned char`! + - :cpp:`char` 类型可能采用 :cpp:`signed char` 或 :cpp:`unsigned char` 的表示方式, 也就是说可能是有符号数或无符号数; 此外, :cpp:`char` 是独立的类型, 不是 :cpp:`signed char` 类型, 也不是 :cpp:`unsigned char`! -> 浮点数 - 只要有可能, 转换为足够精确的数值, 例如整数 :cpp:`1` 转换为浮点数 :cpp:`1`.