概述
1.代码
#include <iostream>
#include <assert.h>
#include <string.h>
using namespace std;
// strcpy函数实现
char *mystrcpy(char *des, const char *src)
{
assert(*des != NULL && *src != NULL);
char *addrdes = des;
while((*des++ = *src++)!='
1.代码
#include <iostream>
#include <assert.h>
#include <string.h>
using namespace std;
// strcpy函数实现
char *mystrcpy(char *des, const char *src)
{
assert(*des != NULL && *src != NULL);
char *addrdes = des;
while((*des++ = *src++)!='