#include <string.h> // 引入字串標題檔 void main() { char str[80]="1234567899"; cout<<strlen(str)<<endl; } 執行時列印出10,代表字串的長度為10 ...
確定! 回上一頁