當前位置:編程學習大全網 - 網站源碼 - Strlen()源代碼

Strlen()源代碼

1: char * catstr (charstr 1 [],charstr 2 [])

{

strcat(str1,str 2);

返回str 1;

}

二:

char* catStr(char str1[],char str2[])

{

int I = 0;

int lenstr 1 = 0;

lenstr=strlen(str1)

對於(我;我& lt= strlen(str);i++)

{

str 1[lenstr++]= str 2[1];

}

返回str 1;

}

  • 上一篇:C++中10的幾次方怎麽表示
  • 下一篇:Python Web開發學習實錄的章節目錄
  • copyright 2024編程學習大全網