#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
char* strcpy(char*, char*);
int main()
{
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
char ct[20], s[20];
printf("Введите строку: ");
scanf("%s", ct);
printf("Результат: %s\n", strcpy(s, ct));
return 0;
}
char* strcpy(char* s, char* ct)
{
char *w = s;
while ((*s++=*ct++)!='\0');
return w;
}
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.