[問題] 函式裡用(char *a[])的問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Visual C++ 2008
問題(Question):
把轉換大小寫的程式碼寫在主程式可以成功執行
一旦用了函式 就會失敗
餵入的資料(Input):
A B C 1 2 3 d e f
預期的正確結果(Expected Output):
abcDEF
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
http://codepad.org/b0ELpY3D ←全寫在主程式
http://codepad.org/4r99xVBa ←用函式寫 錯誤的
補充說明(Supplement):
有爬過至底13誡 是否是因為第4點的關係?
--
推
05/16 18:39,
05/16 18:39
→
05/16 18:40,
05/16 18:40
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.173.210.153
※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1397900038.A.3A5.html
※ 編輯: wvwvwvwvwv (1.173.210.153), 04/19/2014 17:44:37
→
04/19 17:44, , 1F
04/19 17:44, 1F
→
04/19 17:50, , 2F
04/19 17:50, 2F
→
04/19 17:50, , 3F
04/19 17:50, 3F
→
04/19 18:44, , 4F
04/19 18:44, 4F
→
04/19 18:46, , 5F
04/19 18:46, 5F
→
04/19 18:47, , 6F
04/19 18:47, 6F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):