• 2022-06-08
    阅读程序填空。以下程序用于实现字符串链接,请在程序空白处将程序补充完整。#include [stdio.h]void MyStrcpy(char *p, char *q);main(){ char a[80], b[80]; printf("Please enter a:"); gets(a); printf("Please enter b:"); gets(b); MyStrcpy(alb); printf("连接后的新字符串:"); puts(a);}void MyStrcpy(char *p, char *q){ while(*p!='\0') { p++; } for( ;*q!='\0';p++,q++) { *p=*q; } ( );}