
.net
weishanshan00
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
递归-阶乘
<br /><br />using System;<br />using System.Collections.Generic;<br />using System.Linq;<br />using System.Text;<br /> <br />namespace 递归<br />{<br /> class Program<br /> {<br /> public static long fact(int n)<br /> {<br /> i原创 2011-05-20 11:27:00 · 209 阅读 · 0 评论 -
计算阶乘的方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 计算阶乘的方法{ class Program { static int fac(int n) { int i, f原创 2011-06-12 22:17:00 · 281 阅读 · 0 评论 -
没有返回值没有参数的方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 没有返回值没有参数的方法{ class Program { static void fun() { Console原创 2011-06-12 22:39:00 · 384 阅读 · 0 评论 -
值传递
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 值传递{ class Program { static void fun(int x, int y) { x =原创 2011-06-12 22:44:00 · 315 阅读 · 1 评论 -
引用传递
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 引用传递{ class Program { static void fun(ref int x, ref int y) {原创 2011-06-12 22:45:00 · 467 阅读 · 0 评论 -
Session总结
1.使用Session验证用户登录 在ASP.NET中,利用Session对象验证用户是否登录的方法很简单,例如在本实例中,当用户安全登录时,可以利用如下代码保存用户的登录名,并跳转到NavigatePage.aspx中。2011-09-22 21:27:52 · 216 阅读 · 0 评论 -
N层架构
层次划分: 目前,典型的分层架构是三层架构,即自底向上依次是数据访问层、业务逻辑层和表示层。 这种经典架构经历了时间的考验和实践的多次检验,被认为是合理、有效的分层设计,所以,在本文中,将沿袭这种经典架构,使用数据访问层、业务逻辑层和表示层的三层架构体系。 职责划分: 目前,在典型的三层架构中,对层次各自的职责划分并没有一个统一的规范,综合现有的成功实践和.转载 2011-10-27 08:58:50 · 664 阅读 · 0 评论 -
反射
反射是一种晚绑定,它可以被开发者用来设计出更具灵活性的代码,而代价则是花费更多的系统资源开销使得应用程序可以在运行时获取一些未知信息。 说白了,在编写代码的时候,开发者可能还不知道或不能确定一些对象的信息,于是把决定权交给代码本身,将来在需要的时候由代码自己去获取和判断这些信息并作出相应的反应。这样的方式固然可以使代码更加灵活,但在想要使用反射的时候,必须先考虑好在性能与灵活之转载 2012-04-25 13:37:39 · 295 阅读 · 0 评论 -
xml序列化
http://www.cnblogs.com/yukaizhao/archive/2011/07/22/xml-serialization.html转载 2012-04-26 15:14:47 · 269 阅读 · 0 评论 -
C#实现 将两个有序链表并为一个有序链表
using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication4{ class Program { static void Display(LinkedList ls) { foreach (st原创 2012-06-19 13:35:33 · 654 阅读 · 3 评论 -
C#实现冒泡排序
using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication9{ class Program { static void sort(int[] arr) { int temp;原创 2012-06-19 17:11:52 · 422 阅读 · 0 评论 -
计算平方的方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 计算平方的方法{ class Program { static int pf(int n) { return n原创 2011-06-12 22:04:00 · 338 阅读 · 0 评论 -
二维数组转置
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 二维数组转置{ class Program { static void Main(string[] args) {原创 2011-06-12 21:52:00 · 401 阅读 · 0 评论 -
元素引用
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 元素引用{ class Program { static void Main(string[] args) { i原创 2011-06-12 21:38:00 · 219 阅读 · 0 评论 -
任意输入10个数并排序
<br /><br />using System;<br />using System.Collections.Generic;<br />using System.Linq;<br />using System.Text;<br /> <br />namespace 将十个数存入数组并排序<br />{<br /> class Sort<br /> {<br /> public Sort(int[] A)<br /> {<br /> int t原创 2011-05-20 19:56:00 · 604 阅读 · 0 评论 -
快速排序
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 快速排序{ class QuickSort { private int q; public void Sort(int[] A, int p, int r) { if (p { q = Partio原创 2011-05-20 20:48:00 · 199 阅读 · 0 评论 -
泛型集合-LinkedList
<br /><br />using System;<br />using System.Collections.Generic;<br />using System.Linq;<br />using System.Text;<br />using System.Collections;<br /> <br />namespace LinkedList<br />{<br /> class Program<br /> {<br /> static void Display(Linke原创 2011-05-20 19:03:00 · 214 阅读 · 0 评论 -
使用foreach求二维数组最小值
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 使用foreach求二维数组最小值{ class Program { static void Main(string[] args) {原创 2011-06-12 21:59:00 · 362 阅读 · 0 评论 -
找两数最大值的方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 找两数最大值的方法{ class Program { static int max(int x, int y) {原创 2011-06-12 22:36:00 · 390 阅读 · 0 评论 -
判断素数
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 判断素数{ class Program { static void Main(string[] args) { b原创 2011-06-12 15:27:00 · 249 阅读 · 0 评论 -
成绩判断
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 成绩判断{ class Program { static void Main(string[] args) { i原创 2011-06-12 15:42:00 · 280 阅读 · 0 评论 -
判断元音辅音字母
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 判断元音辅音字母{ class Program { static void Main(string[] args) {原创 2011-06-12 15:58:00 · 995 阅读 · 0 评论 -
找10个数中的最大数
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 找10个数中的最大数{ class Program { static void Main(string[] args) {原创 2011-06-12 21:22:00 · 363 阅读 · 0 评论 -
计算10个数的和及平均值
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 计算10个数的和及平均值{ class Program { static void Main(string[] args) {原创 2011-06-12 21:29:00 · 1313 阅读 · 0 评论 -
C#实现 汉诺塔问题
using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication6{ class Program { static void hanoi(int n, char A, char B, char C) {原创 2012-06-19 15:09:38 · 3268 阅读 · 0 评论