C vs C++ (Objective-C vs Objective-C++) for iPhone

后端 未结 8 1742
余生分开走
余生分开走 2021-02-01 22:58

I would like to create a portable library for iPhone, that also could be used for other platforms.

My question is the fallowing:

Does anyone knows what is the be

8条回答
  •  情歌与酒
    2021-02-01 23:51

    If you're writing a portable library, and don't need specific language features for it, why not write it in straight C? It can be easily called from C++, C, Objective-C, and many, many other languages.

    If you require specific language features that aren't available in C, you should tell us what they are so you can get better advice =)

提交回复
热议问题