![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
一串字符串
这个作者很懒,什么都没留下…
展开
-
C#_类
C#_类 1:访问修饰符 访问修饰符可以定义应用程序中类成员的作用域。和C++有一些不同,下面说明一下: public:访问不受限制,public成员可以被任何其他类访问。 private:访问只限于包含该成员的类,只有包含该成员的类才可以访问。 protected:访问限于包含该成员的类及该类的派生类。 internal:访问只限于所在的程序集,只有在同一程序集内的类...原创 2017-12-21 16:03:00 · 108 阅读 · 0 评论 -
C#_数组
C#_数组 1:数组是一组相同类型的对象的集合。C#语言中,数组由抽象类System.Array派生而来,是一种引用类型。 (1)一维数组 一维数组的定义示例: int[]arr;//定义了一维数组arr,其每个数组元素均为int类型 string[]str;//定义了一维数组str,其每个数组元素均为string类型 定义数组之后,必须对数据进行初始化之后才能使...原创 2017-12-20 11:16:00 · 112 阅读 · 0 评论 -
C#_switch语句,for循环,do while循环,while循环
C#_switch语句,for循环,do while循环,while循环 1:switch语句,代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplicati...原创 2017-12-19 16:02:00 · 371 阅读 · 0 评论 -
C#_选择结构,Console的应用,数据类型转换
C#_选择结构,Console的应用,数据类型转换 1:先看一个顺序结构编程,代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication31 { ...原创 2017-12-18 10:49:00 · 266 阅读 · 0 评论 -
C#_实现Hello Word!
C#_实现Hello Word! 1:代码如下: using System;//using关键字可以引用MIcrosoft.NET框架类库中的现有资源。 //System命名空间提供了对构建应用程序所需的所有系统功能的访问,包括本例中所包含的Console类。 using System.Collections.Generic; using System.Linq; ...原创 2017-12-18 10:36:00 · 206 阅读 · 0 评论