I want to represent a cyrillic character in some basic way using c++ under windows
<p>So I'm actually trying to make a code that will transform all the cyrillic letters from a word into the relevant latin letter. For example, the russian "я" should become а "q" and so on. So, for now I have found something I think is the best and simplest to understand way to work with cyrillic symbols, which is:</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;windows.h&gt;

using namespace std;

int main()
{
    const char *s = "яятя";     //my constant cyrillic char
    char c[10];                 //I'll transform it into that
    CharToOemA(s, c);           //the way I saw on the internet, I have barely understood what it actually does...
    cout &lt;&lt; c &lt;&lt; endl;          //This gives me the "яяяя" I need, so I'm happy...

    for(int i = 0; i &lt; (int)strlen(c); i++)
    {
        //So I'm looping my character and want to somehow compare each single char with some kind of representation of the cyrillic "я"
        //Somehow using the encoding system of the c++ GNU compiler code blocks 13.12
        //Unicode number of "я" - U+044F
        if(c[i] == ...) //What could I use?
        //tried with '\u044F', but it didn't work
            cout &lt;&lt; c[i] &lt;&lt; " -- this should be a q!" &lt;&lt; endl;
    }

    cout &lt;&lt; "Press any key to continue..." &lt;&lt; endl;
    cin.get();
    return 0;
}
</code></pre>

<p>I could guess this has been answered a lot of times, but I've currently not found the most right way to work with those damn cyrillic strings and chars in the code itself, to compare them and do stuff with them... So if you could suggest a way to achieve my goal, I'd be thankful...</p>