Date: Fri, 18 Dec 2020 14:21:57 +0200
Code:
*_setmode(_fileno(stdout),_O_U16TEXT);*
* wprintf(L"\x00B2");*
* _setmode(_fileno(stdout),_O_U8TEXT);*
* cout << " as it is.\n";*
These are 4 lines of code of a program I am working on. So, basically I am
trying to add a unique character, the symbol of power of 2 it is, so I set
the mode as above to '16TEXT' and then printed the character in the 2nd
line. Finally I wanted to add some more text, so i turned the mode to
'8TEXT'. Then I put a 'cout' to whrite the rest of the text but it didn't
print anything. I would be really thankful if you could advise me. Thank
you for your attention.
(I am not quite sure that I sent this message to the right email. So, if
not, please forward it to the right if you know it)
*_setmode(_fileno(stdout),_O_U16TEXT);*
* wprintf(L"\x00B2");*
* _setmode(_fileno(stdout),_O_U8TEXT);*
* cout << " as it is.\n";*
These are 4 lines of code of a program I am working on. So, basically I am
trying to add a unique character, the symbol of power of 2 it is, so I set
the mode as above to '16TEXT' and then printed the character in the 2nd
line. Finally I wanted to add some more text, so i turned the mode to
'8TEXT'. Then I put a 'cout' to whrite the rest of the text but it didn't
print anything. I would be really thankful if you could advise me. Thank
you for your attention.
(I am not quite sure that I sent this message to the right email. So, if
not, please forward it to the right if you know it)
Received on 2020-12-18 06:22:10