共用方式為


<clocale>

包含標準 C 程式庫標頭 < locale.h > ,並將相關聯的名稱新增至 std 命名空間。

需求

Header: < clocale>

命名空間:std

備註

包含此標頭可保證,透過使用 Standard C 程式庫標頭中的外部連結所宣告的名稱會在 std 命名空間中宣告。

常數

#define NULL see below
#define LC_ALL see below
#define LC_COLLATE see below
#define LC_CTYPE see below
#define LC_MONETARY see below
#define LC_NUMERIC see below
#define LC_TIME see below

結構

struct lconv;

函式

char* setlocale(int category, const char* locale);
lconv* localeconv();

另請參閱

標頭檔參考
C++ 標準程式庫概觀
C++ 標準程式庫中的執行緒安全