討論串[問題] 字串處理問題
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
problem:. 算一算每行有幾個字(word)。. 範例輸入:. Hello everybody!!. This is school principal speeking.. 範例輸出 :. 2. 5. 我的程式. #include <stdio.h>. #include <stdlib.h>.
(還有145個字)
內容預覽:
※ 引述《jeremyhcw ((  ̄ c ̄)y▂ξ)》之銘言:. 醜一點:. for(char l[1024];fgets(l,1024,stdin);) {. int i=0,n=0;. for(char w[1024],*t=l;sscanf(t," %s%n ",w,&n)==1;++i,t
(還有42個字)
內容預覽:
預期的正確結果(Expected Output):. 正確地複製字串. 錯誤結果(Wrong Output):. 程式當掉. 程式碼:. char* temp = funA();. if (temp == NULL). {. funB(char *para_val);. //TODO:有沒有可能把p
(還有47個字)
首頁
上一頁
1
下一頁
尾頁