#include<Windows.h>
#include<stdio.h>
int main(){
char buffer[100] = "Readed: ";
DWORD len, actlen;
len = strlen(buffer);
HANDLE
in = GetStdHandle(STD_INPUT_HANDLE),
out = GetStdHandle(STD_OUTPUT_HANDLE);
printf("INPUT: %d\r\nOUTPUT:%d\r\n", in, out);
printf("Vvedite: \n");
fflush(stdout);
ReadFile(in, buffer + len, 80, &actlen, 0);
WriteFile(out, buffer, len + actlen, &actlen, 0);
return 0;
}
Lab work the first of OS, teacher: Kostin
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.