[問題] xcode讀檔問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
xcode
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
希望把桌面上的txt檔輸入至xcode 中
但發現似乎無法輸入
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
int fn[link + 1], an[link + 1];
int i;
ifstream ifile("Macintosh://Users/Desktop/test.txt");
補充說明(Supplement):
之前讀的書皆是用ifile來進行讀檔,但書上提供的皆是在dev c++上
不曉得xcode的讀檔是不是有其他的限制存在
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 203.73.48.168
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1443373729.A.7C8.html
→
09/28 02:03, , 1F
09/28 02:03, 1F
→
09/28 11:02, , 2F
09/28 11:02, 2F

→
09/28 11:02, , 3F
09/28 11:02, 3F
→
09/28 11:05, , 4F
09/28 11:05, 4F
→
09/28 11:05, , 5F
09/28 11:05, 5F
→
09/28 11:08, , 6F
09/28 11:08, 6F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章
-3
16