문제

How do I access "locale" and "global" without using the syntax

 using namespace std

Its the following syntax I have problem with

 #include <locale>

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

Thanks in advance!

도움이 되었습니까?

해결책

locale lives in the std namespace:

std::locale::global(std::locale("swedish"));
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top