I have never heard of "easy language", but I have never used it. I just heard that it can be programmed in Chinese only. It is very suitable for beginners to find tutorials on the Internet.
Here, let's see if there is any way to enable C # in the advanced language to support Chinese programming. First, let's look at the following:Code:
Using System;
Using System. Collections. Generic;
Using System. text;
Namespace Chinesecode
{
Public Class Creature
{
Public Virtual Void Self-introduction ()
{
Console. writeline ("My name is ghost? What am I? I don't know what I am." + This. GetType (). Name );
}
}
Public Class Animal: creature
{
Protected String Mobile mode;
Protected String Quantifiers = " Only " ;
Public Animal ()
{
Mobile mode= "Mobile";
}
Public Virtual Void Mobile ()
{
Console. writeline ( " This " + Quantifiers + This . GetType (). Name + " In a free " + Mobile mode + Environment. newline );
}
Public Override Void Self-introduction ()
{
Console. writeline ( " I belong " + This . GetType (). basetype. Name + " , I am " + Quantifiers + " Cute " + This . GetType (). Name );
}
}
Public Class Birds: Animals
{
Public Bird ()
{
Mobile mode= "Flying";
}
}
Public Class Fish: Animals
{
Public Fish ()
{
Mobile mode= "Traveling";
Quantifiers= "Entries";
}
}
Public Class Horse: Animal
{
Public MA ()
{
Mobile mode= "Run";
Quantifiers= "Horse";
}
}
Sealed Public Class Run
{
[Stathread]
Static Void Main ( String [] ARGs)
{
Biological [] Zoo = New Creature [ 5 ];
Zoo [ 0 ] = New Bird ();
Zoo [ 1 ] = New Fish ();
Zoo [ 2 ] = New Horse ();
Zoo [ 3 ] = New Animals ();
Zoo [ 4 ] = New Creature ();
Foreach (Biological little creature) In Zoo)
{
Little creature. self-introduction ();
If (Little creature Is Animals)
{
(Animal) small creature). Move ();
}
}
Console. readkey ();
}
}
}
Various variables are implemented in Chinese, and even functions can be defined in Chinese.
Originally, I thought that I could not replace the int keyword with Chinese. However, C # does not seem to provide a function similar to typedef, so it does not work for the moment.
And check the running effect:
Next, I tested the Chinese variable in the C ++ VS 2005 environment, and it seems that Bt is required: # Include < Iostream >
Using STD: Endl;
Using STD: CIN;
Using STD: cout;
Int Main ()
{< br> typedef int Chinese test;
Chinese test = 0 ;
test ++ ;
cout test Endl;
getchar (); /// prevent direct exit
}
Use typedef to define the int type variables as Chinese. After testing, the int type variables are more like Chinese programming birds. Haha. In addition, there is no problem in using operators.
although I do not recommend this rating variable, some small Programs have minor issues, especially when the super white asks you what the code means and how to write this program, it may be easier to explain it in Chinese.
This article is purely entertaining. If you use Chinese variables, don't come to me for any problems.