將兩個char類型連線。 char d[20]="Golden";. char s[20]="View";. strcat(d,s);. //列印d. printf("%s",d);. 輸出d 為GoldenView (中間無空格). d和s所指記憶體區域 ...
確定! 回上一頁