C vs C++ - cross-platform
I have a very quick question to which I havn't fo开发者_开发问答und 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.
simply put no, the question is how you program, if a compiler is available for the platform and if your libraries are available for the target platform.
精彩评论