Based on the background of C ++ after working in Windows-based applications in C ++ for about four years, and then, after switching to C #, I can say that C ++ and C # are very similar in syntax. However, C # has some cool reduction functions that are not available in C.
The biggest differences from my view are not the syntax, but rather the libraries, structure, or what you want to name, ignoring managed C ++. When you type in C ++ code, you usually have to decide which platform you are planning, as well as what types of libraries you plan to use. When I was working with C ++, I used the Microsoft Foundation libraries. However, there are many more options. In addition, with C ++ you have a lot more options to make which type of IDE you plan to use. With C #, you usually just use Visual Studio and the .Net framework, unless you are coding with Mono.
In addition, since C # uses a very rich .Net infrastructure, it is quite easy to start writing programs that are usually reserved for the gurus in the C ++ world. Of course, you also have the option of using managed C ++, which uses the .Net infrastructure, but I would have to ask: why?
I deliberately abandoned C from my discussion because I had never worked with him professionally. I can say this, although some of the code I saw in C is fuuuuugugly. Not only because it is procedural, but also because many of the coding standards are very accurate, but cannot be used. I donβt think it should be, itβs normal, it is usually written in a very unreadable style. It could also be due to my experience with object-oriented programming for so long.
source share