摘要:
1、遍历排序的方法 1、冒泡排序法 冒泡排序的思想是: 两两比较相邻记录的关键码,如果反序则交换,直到没有反序的记录为止。 代码如下: using System;using System.Collections;namespace system2{ class Program { static v 阅读全文
摘要:
学习C#数组 1、遍历数组和初步接触枚举 using System;using System.Collections;namespace system2{ class Program { enum MyColor { 赤, 橙, 黄, 绿, 青, 蓝, 紫 }; enum People { 小明=2 阅读全文
摘要:
学习C#字符串中的String类 1、格式化字符串format的用法 using System;using System.Collections;using System.Collections.Generic;namespace C_sharp{ class Program { static vo 阅读全文