Author: mbreeze
Today, I finally calmed down to learn. Net technology. Because I have learned some basic C language, I decided to start from C #. NET.
. Net is a development platform. Defines a subset of CLS (common language subset) Public languages. XML is fully supported. Interconnect Networks to 3A, anytime, anywhere, and any device.
C # features Rapid Application Development (RAD)
VOS Virtual Object System
.......
First source program
Using System; // similar to # include
/*
Class Welcome // declare a class, which is Welcome
{
Static void Main () // indicates a method in the class Welcome.
{
Console. WriteLine ("Pleas enter your name ");
Console. ReadLine (); // accept input
Console. WriteLine ("Welcome You"); // The output shows column 1.
}
}
*/
/* Class Welcome // declare a class, which is Welcome
{# If // force the compiler to ignore source code snippets that contain comments and match the following endif
Static void Main () // indicates a method in the class Welcome.
{
Console. WriteLine ("Pleas enter your name ");
String name = Console. ReadLine ();
Console. WriteLine ("Welcome to You, {0 }! ", Name); // Example 2
} # Endif
}
*/
Class Welcome // declare a class, which is Welcome
{
Static void Main () // indicates a method in the class Welcome.
{
Console. WriteLine ("Pleas enter your name ");
String message = "Weclome you" + Console. ReadLine ();
Console. WriteLine (message); // The output display is basically the same as the preceding example.
}
}
ReadLine and WriteLine are added when the display is executed, and Read and Write are used, the cursor will not be automatically transferred to the next line.
The annotation methods are almost the same. // ****** indicates commenting a line /*..... */Indicates that comments are not compiled!
// Even the QQ: 77675761