bonjour
voila mon probleme
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
#include <iostream>
#include <string>
#include <locale>
using namespace std;
 
int main()
{
 
  string d("\xd8\xa7"); 
  cout.imbue(locale("ar_KW.utf8"));
  cout << d << endl; 
}
il me renvoie:

error C2039: 'imbue' : is not a member of 'ostream_withassign'
see declaration of 'ostream_withassign'

error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<
char> >' (or there is no acceptable conversion)

pourquoi ces erreurs
merci d'avance