Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hey gays i want to know what is the limitation if i use c++ in android and swift for retail app

What I have tried:

i did know when use c++ you all gain high performance but i want to know what is the limitation when use it
Posted
Updated 16-Feb-17 2:45am
Comments
Richard MacCutchan 16-Feb-17 10:22am    
The most important limitation is that you cannot use C++ for Android or iPhone/iPad.

1 solution

Your question show some lack of knowledge about programming, but let me explain some basics.

Apps are running on devices which have an operating system. So these apps must be tailored for the platform, if they are written with some cross-platform tool like Xamarin. Buts its language is C# which is a high level language (like Swift).

The differences in the programming languages isnt perfomance anymore, but more the time and costs of producing the software. Most languages have some interfaces to lower level languages. So often a high level language is best, because many features are baked into it for speedy development by not reinventing the wheel. That is the problem of the mighty but low level language C++.

Swift is the new language for the Apple universe - but only for it. You can combine Swift and C++ or correctly Objective-C, but it makes not much sense, only when the C++ code is reused or reusable.

For Android you write in Java, which looks a lot like C+++ but isnt.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900