下面注释这句的作用是啥呢???
/*write the function strcpy,don't call C/C++ string library*/
#include <iostream>
#include <stdio.h>
#include <math.h>
#include <string>
#include <assert.h>
using namespace std;
char *Strcpy(char *strDest, const char *strSrc)
{
assert(strDest != NULL && strSrc != NULL);///////////这句的作用
char *resultStr = strDest;
while (*strSrc != '\0')
{
*strDest++ = *strSrc++;
}
*strDest = '\0';
return resultStr;
}
int main()
{
char *str = "0123456789";
char strd[100];
char *ss = Strcpy(strd,str);
cout<<ss<<endl;
return 0;
}