There is no right answer for this, because there is no "better" definition of one size. If you know C ++ and have many C ++ code assets, C ++ surely looks attractive. If you know C #, not C ++, then C # certainly looks attractive.
C ++ applications load faster, but for many applications this is not relevant. C # applications can certainly be written faster, but they also lack determinism. I never even try to use the UI in C ++, and I do not think about making access to the database in C ++. I would not write a driver in C #, though, or a shell extension.
Generally speaking, most of the solutions I have ever supplied were a combination of them. C # has its own strengths. Itโs quick to write, itโs easier to debug and unit test, itโs difficult (though not impossible) to create leaks, and for some operations (for example, accessing data or parsing XML) it is simply simpler.
C ++ also has its own strengths, such as speed of execution (although C # can be done just as quickly for many things), determinism, and the ability to connect to things that want built-in entry points.
So my answer? You need to know both and probably write your solutiuon using both. The percentage of each of you ultimately depends on your ultimate goal.
source share