Simba College-unity-Sword British accompany you 0 basic C # series (i) Hello world

Source: Internet
Author: User
Tags dotnet

This is still a draft.

Simba College: a fair and aboveboard.
Simba Academy: Siege Lion and Glory stone.

Jian Ying accompany your series come again. Jian Ying is a person with great love, love every programmer, especially the beautiful young woman program.
Recently organized friends to play an impromptu group poem creation, no matter how the beginning, will walk the road of toilet culture.
In particular, toilet paper has a very high rate of the mirror.
This makes me have a deep concern about the mental health of this group, which is a long way to go.
Let us together in response to the BORLND not to masturbate, not to masturbate, September I do not masturbate.

Starting from HelloWorld

You may have seen countless helloworld, what is the feeling?
Excitement, disappointment, contentment?
Still can't remember what it feels like?
I can't remember, I was a good scar forget the pain of the animal, I started the time of the past a long, I have forgotten many details at that time.
So I decided to do this series from scratch, with you, and then from the beginning, clean up the old mountains and rivers. Also regained the mentality of ignorance.

What is C #

C#? What kind of name? What's the fuck?
This has to be a little forward. There was also a powerful developer Borland, in addition to Microsoft.
The two of them choked, the result Microsoft Dug away Delphi his father Anders Heilsberg.
Of course, Borland's decline is not only because of the loss of the great God, anyway, he was at Borland then nothing to do.
Microsoft has dug the treasure, then Microsoft's main development tool is the visual series, the main product visual C++,visual Basic,visual FoxPro.
Visual Studio, now well-known, is a packaged promotion for the visual family.
At that time, the industry produced a disruptive product that shook the world, Java. Yes, Java is so NB.
So Anders came to Microsoft the first thing is to copy a Java, and then have Visual J + +.
The consequences can be imagined, the lawsuit lost, J + + cannot be sold.
Then the lid and Anders together to suppress Ah, think Ah, this does not, this is the trend, but also to copy, but to avoid the similarities with Java.
So he got out of the dotnet. Split the language and bytecode into separate parts.
As for that language, because of the history of J + +, there are features of C + +. So there is a saying, eventually called c++++, four + to become a #.
and C # is pronounced C sharp, the Chinese translation of "sharpness C".
Now you know, C # is sharp C.

What's the relationship between C # and Me

As a result, unity uses mono as the scripting engine, and Mono is an open source implementation of dotnet. The main language of Dotnet is C #, so the main development language when using unity is C #.

is not at all clear, yes, I also do not understand.

Java language, Java bytecode, Java runtime, Java Basic Class library, are called java.

and Microsoft and C # have a bit of a mess here

C # language, MSIL bytecode, dotnet Runtime, dotnet framework. There are three kinds of names.

Why not make it like Java? J + +, too much like the law.

dotnet, sometimes directly with the dot ". Net", is the C # runtime, and the dotnet framework is the basic class library of C #.
Msil is the byte code, the file of the byte code is called PE file, is the. dll file. exe file, which you are certainly familiar with.
But Microsoft's separation of language and bytecode runtime class libraries has also brought an advantage. You can create a variety of languages that can be used to mix class libraries.

Later, Microsoft submitted C #, MSIL, dotnet standards to the International Organization for Standardization, which is he as an international standard, who can abide by.
There is a love C #, love dotnet people want a liunx can use the dotnet, Microsoft of course guarding windows, standardization later, this person engaged in mono.
They also set up a very cock company called Xamarin.

Compliance with the same standards as dotnet, but implemented as a cross-platform implementation, this is mono.

The key technology for Unity's cross-platform is this mono, which you realize now, even though Unity has il2cpp itself.

Slowly digesting, the relationship like inbreeding is really not so easy to straighten out.

To do a unity program for the Siege Lion, C # is what you need to learn.

How to learn C #

First C # is Microsoft's pro-son. Microsoft has an integrated development environment for C #, called Visual C #.

Now it's not easy for you to find a standalone Visual C # download, as they pack up the promotion and suggest you download a copy of the vs2013 and install him. Community Edition no money, the flagship version of the serial number is also everywhere.

Visual Studio looks like this

What, you use a MacBook, that's none of my business? We just need to use Windows and VisualStudio to explain, and find a way to solve them.

Then we set up the first C # console project to write our first HelloWorld.

Why start with a console application? What is the console?

The console represents a program on windows that interacts in the form of command-line input and output. This statement is too official, a picture you know

Well, if you've been through the DOS era, that's not a problem.

We start with the console program because he is the most simple, console program has only one input, one output. An entry function that exits when the function is executed.

is a simple test environment.

?

Not finished

Simba College-unity-Sword British accompany you 0 basic C # series (i) Hello world

Related Article

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.