简体   繁体   中英

C vs C++ - cross-platform

I have a very quick question to which I havn't found an answer for. Are there any major platforms (Windows, MacOS, unix, linux, Android, iOS, etc....) out there that supports C but not C++?

Thanks

C and C++ are not operating system dependant. If there is a compiler that can compile the C/C++ code to execute not he current CPU. All is good.

Since C is a subset of C++, you'll definitely bump into some environment that supports C but no C++. Whether such a platform may be called 'major' by any standards is another question. (There was a C compiler for the C64, but no C++ compiler to my knowledge. The C64 was absolutely a major platform :)

Not sure you got me curious though and I found this site that anyone considering cross-platform development should read Ten Rules for Cross-Platform Development . I personally believe learning how to do things right from the "get-go" is essential.

简单地说不,问题是如何编程,如果编译器可用于平台并且您的库可用于目标平台。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM