سؤال

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