摘要: system.collection 命名空间,接口和类 对象(列表。列队。位数组。哈希表和字典) arraylist 用到queue队列集合,stack栈集合,哈希表集合arrylist arry 的异同都实现ilist,icollection,ienumerable接口。索引起始位置一样... 阅读全文
posted @ 2015-08-10 23:49 人走茶亦凉 阅读(178) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace ConsoleApplication31{ class Prog... 阅读全文
posted @ 2015-08-10 23:30 人走茶亦凉 阅读(355) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 冒泡排序{ class Program { static void bubble_sort... 阅读全文
posted @ 2015-08-10 00:48 人走茶亦凉 阅读(251) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace 验证码2{ class Program { ... 阅读全文
posted @ 2015-08-10 00:14 人走茶亦凉 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 一、C++中不能使用random()函数random函数不是ANSI C标准,不能在gcc,vc等编译器下编译通过。但在C语言中int random(num)可以这样使用,它返回的是0至num-1的一个随机数。 可改用C++下的rand函数来实现。1、C++标准函数库提供一随机数生成器rand,返回... 阅读全文
posted @ 2015-08-07 23:56 人走茶亦凉 阅读(463) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 生日{ class Program { static void Main(string[]... 阅读全文
posted @ 2015-08-07 23:51 人走茶亦凉 阅读(177) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 字符串1{ class Program { static void Main(string... 阅读全文
posted @ 2015-08-06 22:07 人走茶亦凉 阅读(551) 评论(0) 推荐(0) 编辑
摘要: namespace 字符串去空格{ class Program { static void Main(string[] args) { string A = "";//空字符串 // A = string.Empty;/... 阅读全文
posted @ 2015-08-05 23:26 人走茶亦凉 阅读(171) 评论(0) 推荐(0) 编辑
摘要: { for (int i = 1; i 200) { Console.WriteLine("您的输入不在范围内"); } else { ... 阅读全文
posted @ 2015-08-05 23:00 人走茶亦凉 阅读(166) 评论(0) 推荐(0) 编辑
摘要: for (int i = 1; i =1;i--)i的起始值是10 着次递减 for(){}嵌套放便控制行列的长短break;中断循环continue;跳过以后的代码,继续循环 阅读全文
posted @ 2015-08-04 01:04 人走茶亦凉 阅读(219) 评论(0) 推荐(0) 编辑