刘信含

 

2011年6月20日

什么是C#索引器

摘要: C#索引器索引器是一种特殊的类成员,它能够让对象以类似数组的方式来存取,使程序看起来更为直观,更容易编写。1、索引器的定义C#中的类成员可以是任意类型,包括数组和集合。当一个类包含了数组和集合成员时,索引器将大大简化对数组或集合成员的存取操作。定义索引器的方式与定义属性有些类似,其一般形式如下:[修饰符] 数据类型 this[索引类型 index]{ get{//获得属性的代码} set{//设置属性的代码}}修饰符包括 public,protected,private,internal,new,virtual,sealed,override, abstract,extern.数据类型是表示将 阅读全文

posted @ 2011-06-20 09:02 刘信含 阅读(1042) 评论(3) 推荐(0)

2011年6月17日

C#视频教程

摘要: 1. http://tech.163.com/07/0627/16/3I0PRN2F00092AVF.html 配置2. http://tech.163.com/07/0627/16/3I0Q6NMS00092AVF.html 数组(1)3. http://tech.163.com/07/0627/16/3I0Q7D4G00092AVF.html 数组(2)4. http://tech.163.com/07/0627/16/3I0Q85E500092AVF.html 命名空间 5. http://tech.163.com/07/0627/16/3I0Q8P7C00092AVF.html 方法( 阅读全文

posted @ 2011-06-17 23:51 刘信含 阅读(513) 评论(0) 推荐(1)

进制转换器1.0(C语言编写)(数学运算法模式)

摘要: 进制转换器1.0(C语言编写),数学运算法写的,还是存在输入纠错功能的BUG。#include "stdio.h"#include "math.h"#include "stdlib.h"rzs(long int *w,long int j);szr(long int *w,long int d);main(){long int a,b,c,x,y;char e[50];while(1){ do{printf("输入转换的原进制数:");scanf("%ld",&b);fflush(std 阅读全文

posted @ 2011-06-17 14:33 刘信含 阅读(603) 评论(0) 推荐(0)

宝宝的计算器1.0(C#编写)

摘要: 宝宝的计算器1.0还在调试当中,存在按钮“清空”和键盘按键“="的冲突问题,存在小数不能退格问题。正在修复BUG当中。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication13{ public partial class Form1 : Form { public For 阅读全文

posted @ 2011-06-17 14:26 刘信含 阅读(1932) 评论(5) 推荐(2)

导航