[問題] 用dirent.h讀檔名

看板C_and_CPP (C/C++)作者 (shiuan)時間10年前 (2016/04/06 06:16), 10年前編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
更新一下問題 我想把dname的字串丟掉files這個vector存起來 但是print出來每次都只有第一行 想問一下有哪裡寫錯嗎? http://i.imgur.com/1GNCEAb.jpg
http://i.imgur.com/R3ib1nJ.jpg
-- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.195.73.235 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1459894568.A.FC8.html ※ 編輯: shuian88 (123.195.73.235), 04/06/2016 06:17:37 ※ 編輯: shuian88 (123.195.73.235), 04/06/2016 06:18:23

04/06 09:39, , 1F
阿都用%s印出了你覺得他是什麼
04/06 09:39, 1F
※ 編輯: shuian88 (42.72.16.97), 04/06/2016 14:14:35

04/06 18:55, , 2F
不然你認為 printf() 這樣寫應該印出什麼?
04/06 18:55, 2F
文章代碼(AID): #1N13ae_8 (C_and_CPP)
文章代碼(AID): #1N13ae_8 (C_and_CPP)