Доброго времени суток!
Следующий код:
#include <iostream>
#include <locale>
int main()
{
std::locale::global(std::locale("rus"));
std::cout << "абвгд" << std::endl;
return 0;
}
приводит в компиляторе MinGW GCC 3.4.5. к ошибке
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
Что в этом коде не так? Как сделать, чтобы печатались русские буквы?