mirror of
https://github.com/Kaehvaman/OAIP.git
synced 2025-01-18 16:49:11 +04:00
23 lines
548 B
C
23 lines
548 B
C
#include <stdio.h>
|
|
#include <locale.h>
|
|
#include <Windows.h>
|
|
|
|
int main() {
|
|
printf("default cp = %d\n", GetConsoleCP());
|
|
SetConsoleCP(1251);
|
|
SetConsoleOutputCP(1251);
|
|
printf("new cp = %d\n", GetConsoleCP());
|
|
//printf("%s\n", setlocale(LC_ALL, "Russian_Russia.866"));
|
|
//printf("%s\n", setlocale(LC_CTYPE, ""));
|
|
printf("Hello world! Ïðèâåò ìèð!\n");
|
|
printf("%f\n", 1234567.89);
|
|
char str[200];
|
|
printf(" input text: ");
|
|
fgets(str, sizeof(str), stdin);
|
|
//scanf("%5[^\n]", str);
|
|
printf("output text: %s", str);
|
|
printf("lolol");
|
|
return 0;
|
|
}
|
|
|