摘要: // 前言:// 今天我们在另外一个.cs文件里面定义类,顺便学习一下引用命名空间. // 操作步骤 :// 在菜单依次执行下列步骤. // 1. 项目 2. 添加类. 3.选择类 4. 为你的类起一个名字 5.确定 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 // 这个就是我们的类文件了. Ren.cs 7 namespace RenClass 8 { 9 cl... 阅读全文
posted @ 2012-09-05 22:02 梦断难寻 阅读(18800) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace ConsoleApplication1 7 { 8 class Program 9 {10 // 要理解递归,先要理解递归. (这只是一句玩笑话 )11 // 递归,顾名思义就是递来归去,如此反复,直到不符合某个条件. 而函数递归意思也就是函数调用函数自己. 下面用代码来示例:12 13 static in... 阅读全文
posted @ 2012-09-05 20:44 梦断难寻 阅读(5079) 评论(0) 推荐(0) 编辑