iostream and sstream for Objective-C

前端 未结 1 1241
夕颜
夕颜 2021-01-14 17:10

I\'m trying to port some C++ code to Objective-C. It includes iostream and sstream, but Objective-C does not recognize these. What should be done?<

相关标签:
1条回答
  • 2021-01-14 17:43

    You can use iostream and sstream in Objective-C++.

    Just make sure your source code file ends with .mm instead of .m and you will be able to use any standard C++ library you might need. Including <stream>.

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