看板 EE_DSnP 關於我們 聯絡資訊
寫這樣: char *a="I You He She"; char *i; for(i=strtok(a," ");i!=NULL;i=strtok(NULL," ")) cout<<i<<endl; 程式會crash,為什麼? 改成a[]就不會了... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.240.249