1

I'm writing a simple console application but every accented letter like

è

(used in italian) turns into a different symbol whenever I output it in the console.

Example follows

#include <iostream>

using namespace std;

int main()
{

    int y1 = 20;
    cout << "The number is "<< y1;
    cout << "\nIl numero è "<< y1 <<"\n";
    system("pause");
    return 0;
}

How do I tell the compiler I'm using those symbols?

Martin Ba
  • 37,187
  • 33
  • 183
  • 337
Muteking
  • 1,465
  • 5
  • 18
  • 31

0 Answers0