如何在c++中访问区域设置和全局设置

How to access locale and global in c++

本文关键字:区域 设置 全局设置 访问 c++      更新时间:2023-10-16

如何在不使用语法的情况下访问"locale"answers"global"

 using namespace std

以下语法我对有问题

 #include <locale>
 locale::global(locale("swedish"));

提前感谢!

locale位于std命名空间中:

std::locale::global(std::locale("swedish"));