sapphirebitter

字符串复制

头文件<string>

字符串复制函数:

strcpy(),eg:

strcpy(str1,str2),第一个必须为字符数组的名称,第二个可以是名称或者具体的字符串;

strncpy

将第二个字符串的前n个字符复制的前一个字符串中;,eg:

strncpy(str1,str2,n)

字符串比较函数

strcmp()

eg:strcmp(str1,str2)

 

posted on 2017-02-15 16:08  sapphirebitter  阅读(102)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-11-29
  • 2021-10-11
  • 2022-12-23
  • 2021-11-29
  • 2022-03-04
  • 2022-01-23
  • 2022-12-23
猜你喜欢
  • 2021-11-29
  • 2021-12-09
  • 2021-11-29
相关资源
相似解决方案