Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将一些 C++ 代码移植到 Objective-C。它包括iostreamand sstream,但 Objective-C 不识别这些。应该做什么?
iostream
sstream
您可以在 Objective-C++中使用iostream和。sstream
只要确保您的源代码文件以.mm代替结尾,.m您就可以使用您可能需要的任何标准 C++ 库。包括<stream>.
.mm
.m
<stream>