博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Dissecting the First C# Program "HelloWorld"
阅读量:4510 次
发布时间:2019-06-08

本文共 1021 字,大约阅读时间需要 3 分钟。

//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!");        }    }}

 

 

转载于:https://www.cnblogs.com/limeina/p/3518645.html

你可能感兴趣的文章
java基础篇---网络编程(UDP程序设计)
查看>>
Kafka Producer相关代码分析【转】
查看>>
LeetCode 121. Best Time to Buy and Sell Stock
查看>>
麻省理工学院公开课-第四讲:快速排序 及 随机化 算法
查看>>
复杂表达式
查看>>
R12.1.3 & R12.2.X 注册客户化应用
查看>>
实验十七 线程同步控制
查看>>
[C#]C#中ToString()和Convert.ToString()的区别
查看>>
java作业-窗口的切换
查看>>
【算法与数据结构专场】堆排序是什么鬼?
查看>>
Java中运算符“|”和“||”以及“&”和“&&”区别
查看>>
POJ1026 Cipher
查看>>
JSP-Runoob:JSP开发环境搭建
查看>>
python--对函数的理解
查看>>
基于js原生封装的点击显示完整文字
查看>>
React组件设计技巧
查看>>
androidDecorView、自定义title
查看>>
Java遍历List5种方法的效率对比
查看>>
python 002 文件输入输出
查看>>
HDU 2844 多重背包
查看>>