开发者

iostream and sstream for Objective-C

开发者 https://www.devze.com 2023-01-18 02:17 出处:网络
I\'m trying to port some C++ code to O开发者_运维百科bjective-C. It includes iostream and sstream, but Objective-C does not recognize these. What should be done?You can use iostream and sstream in Obj

I'm trying to port some C++ code to O开发者_运维百科bjective-C. It includes iostream and sstream, but Objective-C does not recognize these. What should be done?


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

精彩评论

暂无评论...
验证码 换一张
取 消