This commit is contained in:
2025-11-23 02:17:17 +07:00
parent ca035a9c08
commit 07921674c9
15 changed files with 1102 additions and 391 deletions
+27
View File
@@ -0,0 +1,27 @@
#include <stdio.h>
#include <wchar.h>
#include <locale.h>
void buffinput(int *inbuff, int *buff){
setlocale(LC_ALL, "");
wint_t ch;
*inbuff = 0;
while((ch = getwchar()) != L'\n' && *inbuff < 5){
buff[*inbuff] = (int)ch;
(*inbuff)++;
}
}
int main() {
int buff[5];
int inbuff = 0;
buffinput(&inbuff, buff);
for(int i = 0; i < inbuff; i++)
printf("%lc - %d ", buff[i], buff[i]);
printf("стопор");
getchar();
return 0;
}