
c#读书笔记
文章平均质量分 65
wujilin
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
做个小游戏
学C#有段时间了,但是从来没做一个象样的东西,今天从网上下了一个C#做的小游戏,练习一下。提高自己的实践能力。原创 2006-09-19 12:09:00 · 820 阅读 · 0 评论 -
值类型和引用类型
1 首先看下这个表Intriguing Question Value Type Reference TypeWhere is this type allocated? Allocated on the stack.原创 2006-08-28 13:42:00 · 742 阅读 · 0 评论 -
值传递与引用传递
1先看看下面的表Parameter Modifier Meaning in Life(none) If a parameter is not marked with a parameter modifier, it is assumed to be passed by value,原创 2006-08-28 13:48:00 · 747 阅读 · 0 评论 -
c#静态函数
仅仅一个静态函数能被定义在一个类中; 我们声明一个静态构造函数通过在它的名字前加上static关键字。在缺省的情况下,静态构造函数是public,如果我们强制的加上public关键字 将导致一个错误。静态构造函数的参数序列必须为空。静态构造函数有且只能被调用一次我们能够初始化静态成员或者调用静态成员在静态构造函数中using System;namespace 静态构造函数{ class原创 2006-08-21 15:55:00 · 1847 阅读 · 0 评论 -
计算机学习
1.本科要达到什么样的水平?是不是要读研? 以下有十项技能如有5项左右能满足已基本上不需读研,或本科学习达到了较高的水平(我差很远,汗!应该还要考虑其他的标准吧?) 1)你已经认为C++与汇编语言是很简单的语言,并能够自由运用。 2)你能够熟练了解一些重要算法的思想和方向,经常从集合论的角度思考算法问题。 3)你能够理解STL为什么那么重要。 4)能独立解决大部分编译和链接的问题。 5转载 2006-06-24 19:38:00 · 711 阅读 · 0 评论 -
C#加减乘运算
using System;namespace 加减乘除{ class Class1 { private static int [,]add(int [,]array1,int [,]array2) { int [,]array = new int[3,3]; for (int i = 0; i { for (int j = 0; j { arr原创 2006-06-07 19:17:00 · 1527 阅读 · 0 评论 -
C#6数组
using System;namespace 数组问题{ class ArrayMath { public static int ArragAverage( int [] array) { int sum=0, averagevalue; foreach(int temp in array) { sum += temp; } av原创 2006-06-01 15:11:00 · 599 阅读 · 0 评论 -
书上的例子
using System;using System.Collections;namespace 静态问题实验课本上的例子{ class Account { public static uint totalAccountsCreated = 0; public Account() { totalAccountsCreated++; } } class Bank { private Arr原创 2006-06-02 16:51:00 · 753 阅读 · 0 评论 -
c#4
using System;namespace 特殊图形{ class class1 { public static void picture(int n) { for (int i = -n/2; i { for (int j = 0; j Console.Write(" "); for (int j = 0; j { Consol原创 2006-05-31 18:03:00 · 827 阅读 · 1 评论 -
C#3
using System;namespace 楼梯问题{ /// /// Class1 的摘要说明。 /// class Elevator { private int currentFloor = 1; private int requestedFloor = 0; private int totalFloorsTraveled = 0; private int totalTrip原创 2006-05-31 14:47:00 · 585 阅读 · 0 评论 -
C#2
using System;namespace ConsoleApplication2{ class SimpleCalculator { public static void Main(string[] args) { int x; int y; int z; SimpleCalculator kkk = new SimpleCalculato原创 2006-05-30 21:02:00 · 637 阅读 · 0 评论 -
c#5阶乘问题
using System;namespace 阶乘{ class Class1 { static void Main(string[] args) { int n; int sum = 1; char c = Y; Console.WriteLine("请输入需要求阶乘的整数"); n = Convert.ToInt3原创 2006-06-01 13:21:00 · 987 阅读 · 0 评论 -
开始学C#练习1
using System;namespace ConsoleApplication1{ public class program1 { public static void Main(string[] args) { Console.WriteLine("Our alien friend"); Console.WriteLine("lives on planet Bli原创 2006-05-29 13:24:00 · 710 阅读 · 1 评论 -
泛型
泛型(简单的说说泛型)泛型是.NET 2.0 新引入的一个功能,在处理很多问题时为我们提供了方便比如以前我们象动态数组中插入元素,然后把插入的元素打印出来。public static void Main(string[] args){ //Value types are automatically boxed when //passed to a member requesting an原创 2006-08-28 13:57:00 · 882 阅读 · 1 评论