bool(布尔类型):存储真值 true 或假值 C99以上支持
C语言中需要包含头文件:#include <stdbool.h>,而在C++中可以直接用
wchar_t(宽字符):存储中文或者unicode
#include <iostream>
#include <locale>
#include <wchar.h>
int main() {
// 设置本地化以支持宽字符
std::setlocale(LC_ALL, "");
通过为16位或
32位
// 使用 wchar_t 类型定义一个宽字符串
wchar_t wstr[] = L"你好,世界!";
// 在 C++ 中打印宽字符串
std::wcout << wstr << std::endl;
return 0;
}