03 2019 档案

摘要:C#各类访问权限,封装,修饰符。 阅读全文
posted @ 2019-03-24 13:03 txb212
摘要:07day循环语句 阅读全文
posted @ 2019-03-19 00:26 txb212
摘要:c#判断语句 阅读全文
posted @ 2019-03-18 00:16 txb212
摘要:C#运算符大全_各种运算符号的概述及作用 一、[]方括号 ([]) 用于数组、索引器和属性,也可用于指针。1、数组类型是一种后跟 [] 的类型:int[] fib = new int[100]; //创建一个有100元素的数组若要访问数组的一个元素,则用方括号括起所需元素的索引:fib[0] = f 阅读全文
posted @ 2019-03-15 00:44 txb212
摘要:C# 运算符运算符是一种告诉编译器执行特定的数学或逻辑操作的符号。C# 有丰富的内置运算符,分类如下:算术运算符关系运算符逻辑运算符位运算符赋值运算符其他运算符本教程将逐一讲解算术运算符、关系运算符、逻辑运算符、位运算符、赋值运算符及其他运算符。算术运算符下表显示了 C# 支持的所有算术运算符。假设 阅读全文
posted @ 2019-03-15 00:43 txb212 阅读(251) 评论(0) 推荐(0)
摘要:1 五个算术运算符 + - * / % 取余 2 优先级 先左后右 先*/后+- 改变表达式中的优先级用小适号() 3 参于运算的两个数必须类型相兼容 4 先声明,再赋值,再使用 1 using System; 2 using System.Collections.Generic; 3 using 阅读全文
posted @ 2019-03-11 23:22 txb212
摘要:C#中转义字符分2中,一种是\,一种是@。 作用1、在字符串的前面加@表示取消字符串中的转义 例如 string path=@"d:\root\subdir"; 作用2、如果用户定义的对象名和系统关键字冲突,可以在变量前面加入@ 例如 string @Class="this is a test"; 转义字符 字符名称 \' 单引号 \" 双引号 ... 阅读全文
posted @ 2019-03-10 22:14 txb212
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace _03day输出变量的值连_赋值符_连接符_占位符 8 { 9 class Program... 阅读全文
posted @ 2019-03-10 21:57 txb212
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace _02day变量 8 { 9 class Program 10 { 11 ... 阅读全文
posted @ 2019-03-10 21:54 txb212
摘要:我的第一个项目hello,world! 控制台程序 阅读全文
posted @ 2019-03-10 21:50 txb212