iostream和sstream for Objective-C [英] iostream and sstream for Objective-C
本文介绍了iostream和sstream for Objective-C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图将一些C ++代码移植到Objective-C。它包括 iostream
和 sstream
,但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?
推荐答案
您可以使用 iostream
和<$
只要确保您的源代码文件以 .mm
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>
.
这篇关于iostream和sstream for Objective-C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文