头文件<string>
字符串复制函数:
strcpy(),eg:
strcpy(str1,str2),第一个必须为字符数组的名称,第二个可以是名称或者具体的字符串;
strncpy
将第二个字符串的前n个字符复制的前一个字符串中;,eg:
strncpy(str1,str2,n)
字符串比较函数
strcmp()
eg:strcmp(str1,str2)
字符串复制
原文:http://www.cnblogs.com/sapphirebitter/p/6401867.html