Im trying to print all extended ASCII chars. I have found a code on forum:
#include <stdio.h>
#include <wchar.h>
#include <locale.h>
#include <iostream>
int main(void) {
wchar_t c;
setlocale(LC_ALL, "C");
for (c = 128; c < 256; c++) {
wprintf(L"char nr %d: %lc\n", c, c);
}
printf("\n%s\n", setlocale(0, NULL));
std::cin.get();
std::cin.get();
return 0;
}
This code is working in windows in VS 2017.
In the screenshot, you can see the result of this code in windows and Linux. I know that problem is with coding, but I don't know how to fix it.