C # FAQ for C ++ programmers

Source: Internet
Author: User


C # FAQ for C ++ programmers
1. What is C #? [Introduction]
C # is a programming language designed by Microsoft. It is loosely based on C/C ++, and bears a striking similarity to Java. Microsoft describe C # as follows:
"C # is a simple, modern, object oriented, and type-safe programming language derived from C and C ++. C # (pronounced 'C sharp ') is firmly planted in the C and C ++ family tree of ages, and will immediately be familiar to C and C ++ programmers. C # aims to combine the high productivity of Visual Basic and the raw power of C ++."
2. How do I develop C # apps? [Introduction]
The (free). net sdk contains the C # command-line compiler (csc.exe). Visual Studio has fully integrated support for C # development. On Linux you can use Mono.
3. Does C # replace C ++? [Introduction]
There are three options open to the Windows developer from a C ++ background:
---- Stick with standard C ++. Don't use. NET at all.
---- Use C ++. NET. microsoft supply. net c ++ compiler that produces IL rather than machine code. however to make full use of. NET environment (e.g. garbage collection), a set of extensions are required to standard C ++. in. NET 1.x this extended language is called Managed Extensions for C ++. in. NET 2.0 me c ++ has been completely redesigned under the stewardship of Stan Lippman, and renamed C ++/CLI.
---- Forget C ++ and use C #.
Each of these options has merits, depending on the developer and the application. for my own part, I intend to use C # where possible, falling back to C ++ only where necessary. me c ++ (soon to be C ++/CLI) is very useful for interop between new. NET code and old C ++ code-simply write a managed wrapper class using me c ++, then use the managed class from C #. from experience, this works well.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.