Cannot use ifstream in Xcode

前端 未结 1 839
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-23 15:28

I am new to C++ and have researched this everywhere and cannot seem to figure out how to compile this and have not idea why. It works in visual C++ but not Xcode. The error seem

1条回答
  •  猫巷女王i
    2021-01-23 16:25

    You forgot to #include , the header file that actually defines all your ifstream goodness. You included twice (or at least tried to), perhaps one of those was meant to be ?

    0 讨论(0)
提交回复
热议问题