I have printed out a tic-tac-toe table in which I have used the greek alphabets as the numbers to be replaced by the numbers (I would ask the person to replace the greek alphabet with a cross (X) or a circle(0) just like a typical tic-tac-toe game.)
LOL I am having difficulties printing out the greek characters. I am using their unicode value to print them out. But its giving nonsense results (yellow image is he output). How do I fix this?(IN CODE::BLOCKS)
#include <iostream>
using namespace std;
int main(){
char a = '\u03b1';
char b = '\u03b2';
char c = '\u03b3';
char d = '\u03b4';
char e = '\u03b5';
char f = '\u03b6';
char g = '\u03b7';
char h = '\u03b8';
char i = '\u03b9';
cout<< " | | "<<endl;
cout<< " | | "<<endl;
cout<< " "<<a<<" | "<<b<<" | "<<c<<" "<<endl;
cout<< " | | "<<endl;
cout<< "_______________|_______________|_______________"<<endl;
cout<< " | | "<<endl;
cout<< " | | "<<endl;
cout<< " "<<d<<" | "<<e<<" | "<<f<<" "<<endl;
cout<< " | | "<<endl;
cout<< "_______________|_______________|_______________"<<endl;
cout<< " | | "<<endl;
cout<< " | | "<<endl;
cout<< " "<<g<<" | "<<h<<" | "<<i<<" "<<endl;
cout<< " | | "<<endl;
cout<< " | | "<<endl;
}