zoukankan      html  css  js  c++  java
  • Dissecting the First C# Program "HelloWorld"

    //Tells the complier that this program uses types from the System namespace.
    using System; 
    //Declares a new namespace, called HelloWorld
    //A namespace is a set of type declarations associated with a name. namespace HelloWorld { //Declares a new class type, called Program class Program { //Declares a method called Main as a member of class Program //Main is a special function used by the complier as the starting point of the program. static void Main(string[] args) { //Contains only a single, simple statement; this line constitutes the body of Main. //Simple statements are terminated by a semicolon. //This statement uses a class called Console, in namespace System, to print out the message to a window on the screen //Without the using statement in line 1, the compiler wouldn't have known where to look for class Console. Console.WriteLine("Hello World!"); } } }
  • 相关阅读:
    hdu 2082 找单词
    hdu 2079 选课时间(题目已修改,注意读题)
    hdu 2073 无限的路
    hdu 2062 Subset sequence
    poj 2777 Count Color
    hdu 2067 小兔的棋盘
    卡特兰数
    poj3468
    hdu1394
    hdu1166(线段树之单点更新)
  • 原文地址:https://www.cnblogs.com/limeina/p/3518645.html
Copyright © 2011-2022 走看看