討論串[問題] 字串處理問題
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓7(7推 0噓 5→)留言12則,0人參與, 最新作者jeremyhcw ((  ̄ c ̄)y▂ξ)時間15年前 (2009/08/01 11:13), 編輯資訊
2
0
0
內容預覽:
problem:. 算一算每行有幾個字(word)。. 範例輸入:. Hello everybody!!. This is school principal speeking.. 範例輸出 :. 2. 5. 我的程式. #include <stdio.h>. #include <stdlib.h>.
(還有145個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者legnaleurc (CA)時間15年前 (2009/08/01 11:52), 編輯資訊
0
0
1
內容預覽:
引述《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個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者bleed1979 (十三)時間15年前 (2009/08/01 12:23), 編輯資訊
0
0
1
內容預覽:
word的定義可能要下好. 比如. hello world !!. 如果是作judge. 這一定會是個test case. Bleed. 引述《jeremyhcw (( c ̄)y▂ξ)》之銘言:. --. World of bleed1979. http://bleed1979.myweb.

推噓0(1推 1噓 19→)留言21則,0人參與, 最新作者paulyanzi (消失)時間12年前 (2012/05/25 00:39), 編輯資訊
0
0
0
內容預覽:
預期的正確結果(Expected Output):. 正確地複製字串. 錯誤結果(Wrong Output):. 程式當掉. 程式碼:. char* temp = funA();. if (temp == NULL). {. funB(char *para_val);. //TODO:有沒有可能把p
(還有47個字)
首頁
上一頁
1
下一頁
尾頁