34
Being a programmer . Net but with an old passion for C++ (which has grown since C++11), I was with this curiosity.
I know . Net can be "extended" with C++/CLI, but I would like to know what C# pure cannot do, while C++ can.
Note: I don’t want opinions here, and I also don’t want to start a flame war. I want facts. I just want to know what the title of the question says, I don’t care if you prefer one language or another because is easier do X on it.
Updating: After 4 responses and a few hours, I’m judging the @utluiz as the one that best answered my question, so I am marking as accepted. The @Flavius is also good, but I found the one from @utluiz more correct.
The two other answers mainly talk about the framework and performance, which are obvious to those who are not new to the subject. I’m not saying they were bad answers, were just not good answers to that one question. (Apart from the fact that the framework is quite stable and performance is not a critical subject.)
Maybe the main thing is to run in non-MM-Windows environments.
– user4552
@user2478690 Have you heard of Project Mono?
– André Leria
It’s not the direct answer to your question but it’s an interesting addition: "C# is slower than C++ because it runs on a virtual machine and not on the native machine".
– alacerda
open question (non-specific), very susceptible to opinions, subject to different types of answers. Vote to close...
– pepper_chico
@pepper_chico Negative. If you look at my grade and update, you’ll see that if there’s something I’m not accepting here, it’s opinions. Before voting to close, see how is the acceptance of these questions in Sopt.
– André Leria
As I’ve already said, you’re asking a kind of question that’s not well defined/described, so the answers that come up are shots, based on what each one understands of the question that’s confused, and I’m not talking about wanting to give any opinion, the fact is, there is no escape from it, for the very understanding of the question is the reader’s choice, and the very understanding of answered is on his part, and not a thing that is said to be impartial.
– pepper_chico
@alacerda C# is not executed by a virtual machine. The code is compiled in native code at the time of execution by a JIT compiler.
– Miguel Angelo
C++ can give you a salary of more than four decimal places.
– Oralista de Sistemas
@Renan The joke was good, but I still believe that what makes the salary depends more on the programmer than on the xD language (and, unfortunately, depends more on the market than on the programmer -- although I love C++, there is almost no more market for it)
– André Leria
@Bigown I had not tried to me much his answer. But she is perfect.
– André Leria
I decided to answer because I didn’t think any answer went anywhere near what you wanted. Perfect is your exaggeration, but I tried to find everything that’s important different :)
– Maniero