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<