[問題] 有關stdafx的問題

看板C_and_CPP (C/C++)作者 (watson)時間12年前 (2013/12/11 22:11), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) vc++ 6.0 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 我在compile時 出現了 C1083: Cannot open include file: 'stdafx.h': No such file or directory 我把stdafx.h 加到 我的include當內 出現了新的問題 error C2065: 'ofstream' : undeclared identifier error C2146: syntax error : missing ';' before identifier 'File1' error C2065: 'File1' : undeclared identifier error C2297: '<<' : illegal, right operand has type 'char [5]' error C2065: 'endl' : undeclared identifier 我有呼叫 <fstream.h> 我找不太出來我的問題 ↓還沒把stdafx加到include檔內 http://ppt.cc/xq9O 加入之後 http://ppt.cc/vcu0 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.124.249.111
文章代碼(AID): #1Ig79_2A (C_and_CPP)
文章代碼(AID): #1Ig79_2A (C_and_CPP)