From 397c928058a8df31a8b154d2ea0f89c188c13f0d Mon Sep 17 00:00:00 2001 From: violeteverisland Date: Tue, 24 Feb 2026 07:39:30 +0800 Subject: [PATCH] 1 --- sizeof函数.cpp => sizeof关键字函数.cpp | 0 实型数据类型.cpp | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+) rename sizeof函数.cpp => sizeof关键字函数.cpp (100%) create mode 100644 实型数据类型.cpp diff --git a/sizeof函数.cpp b/sizeof关键字函数.cpp similarity index 100% rename from sizeof函数.cpp rename to sizeof关键字函数.cpp diff --git a/实型数据类型.cpp b/实型数据类型.cpp new file mode 100644 index 0000000..fed6403 --- /dev/null +++ b/实型数据类型.cpp @@ -0,0 +1,22 @@ +// +// Created by viole on 2026/2/24. +// +#include "iostream" +#include "windows.h" +using namespace std; +int main() { + SetConsoleOutputCP(CP_UTF8); + //float 单精度浮点数,4字节,6-7位的有效位数 + float num1 = 1234567890; + float num2 = 1.234567890; + double num3 = 1234567890.1234567890; + long double num4 = 1234567890.1234567890; + cout<