討論串[問題] 二維字元陣列 & 字串反轉
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓3(3推 0噓 0→)留言3則,0人參與, 最新作者zptdaniel (忠言本逆耳,實願君向善.)時間16年前 (2009/09/12 17:26), 編輯資訊
0
0
0
內容預覽:
43. 我寫成下面這樣,有做些修改.. #include <stdio.h>. #include <stdlib.h>. #include <string.h>. void reverse(const char *str,char *str2). {. int i=0;. int j=strlen(
(還有759個字)

推噓2(2推 0噓 2→)留言4則,0人參與, 最新作者homal (\冏/)時間16年前 (2009/09/12 04:27), 編輯資訊
0
0
0
內容預覽:
#include <stdio.h>. #include <string.h>. void reverse(char *str). {. int i=0;. int j=strlen(str)-1;. char c;. while (j>i). {. c=str[i], str[i]=str[j],
(還有143個字)
首頁
上一頁
1
下一頁
尾頁