node ninja
node ninja

Reputation: 32996

iostream and sstream for Objective-C

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?

Upvotes: 3

Views: 4227

Answers (1)

Pablo Santa Cruz
Pablo Santa Cruz

Reputation: 181290

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>.

Upvotes: 13

Related Questions