duanqibo

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void StringCopy(char* strSource, char* strDestination)
{
int i = 0;
while(*strSource!=\'\0\')
{
*strDestination++ = *strSource++;
}
*strDestination = \'\0\';
}

int main()
{
char strS[] = "You are students";
char strD[50];
StringCopy(strS, strD);
//while(strD!=\'\0\')
printf("%s\n", strD);
return 1;
}

 

分类:

技术点:

相关文章: