• 博客(0)
  • 资源 (2)

空空如也

c# 编程思想 英文版

This book assumes that you have some programming familiarity: you understand that a program is a collection of statements, the idea of a subroutine/function/macro, control statements such as “if” and looping constructs such as “while,” etc. However, you might have learned this in many places, such as programming with a macro language or working with a tool like Perl. As long as you’ve programmed to the point where you feel comfortable with the basic ideas of programming, you’ll be able to work through this book. Of course, the book will be easier for the C programmers and more so for the C++ programmers, but don’t count yourself out if you’re not experienced with those languages (but come willing to work hard; also, the multimedia CD that accompanies this book will bring you up to speed on the basic C syntax necessary to learn C#). I’ll be introducing the concepts of object-oriented programming (OOP) and C#’sbasic control mechanisms, so you’ll be exposed to those, and the first exercises will involve the basic control-flow statements. Although references will often be made to C and C++ language features, these are not intended to be insider comments, but instead to help all programmers put C# in perspective with those languages, from which, after all, C# is descended. I will attempt to make these references simple and to explain anything that I think a non- C/C++ programmer would not be familiar with. Learning

2008-10-23

c#教程(解密)简单易学,适合初学者

目 录 第一部分 C#语言概述...................................................................................................4 第一章 .NET 编程语言C#............................................................................................4 1.1 Microsoft.NET——一场新的革命..................................................................4 1.2 .NET 与C#.......................................................................................................6 1.3 C#语言的特点..................................................................................................8 1.4 小 结........................................................................................................ 11 第二章 运行环境全面了解.NET.........................................................................12 2.1 .NET 结构.......................................................................................................12 2.2 公用语言运行时环境与公用语言规范.........................................................13 2.3 开 发 工 具..................................................................................................17 2.4 小 结........................................................................................................19 第三章 编写第一个应用程序.....................................................................................20 3.1 Welcome 程序................................................................................................20 3.2 代 码 分 析..................................................................................................20 3.3 运 行 程 序..................................................................................................23 .4 添 加 注 释................................................................................................25 3.5 小 结........................................................................................................27 第二部分 C#程序设计基础.........................................................................................28 第四章 数 据 类 型...................................................................................................28 4.1 值 类 型....................................................................................................28 4.2 引 用 类 型..................................................................................................33 4.3 装箱和拆箱....................................................................................................39 4.4 小 结........................................................................................................42 第五章 变量和常量.....................................................................................................44 5.1 变 量........................................................................................................44 5.2 常 量........................................................................................................46 5.3 小 结........................................................................................................47 第六章 类 型 转 换...................................................................................................48 6.1 隐式类型转换................................................................................................48 6.2 显式类型转换................................................................................................53 6.3 小 结........................................................................................................56 第七章 表 达 式.....................................................................................................58 7.1 操 作 符....................................................................................................58 7.2 算术操作符和算术表达式.............................................................................59 7.3 赋值操作符和赋值表达式.............................................................................64 7.4 关系操作符和关系表达式.............................................................................65 7.5 逻辑操作符和逻辑表达式.............................................................................68 7.6 位 运 算....................................................................................................69 7.7 其它特殊操作符............................................................................................72 7.8 小 结........................................................................................................77 第八章 流 程 控 制...................................................................................................79 8.1 条 件 语 句..................................................................................................79 8.2 循 环 语 句..................................................................................................86 8.3 条 件 编 译...................................................................................................90 8.4 异常处理语句................................................................................................95 8.5 小 结......................................................................................................100 第三部分 面向对象的C#..........................................................................................101 第九章 面向对象的程序设计...................................................................................101 9.1 面向对象的基本概念...................................................................................101 9.2 对象的模型技术..........................................................................................103 9.3 面向对象的分析..........................................................................................105 9.4 面向对象的设计..........................................................................................107 9.5 小 结...................................................................................................... 110 第十章 类................................................................................................................... 112 10.1 类 的 声 明.............................................................................................. 112 10.2 类 的 成 员.............................................................................................. 113 10.3 构造函数和析构函数................................................................................ 119 10.4 小 结....................................................................................................122 第十一章 方 法...................................................................................................124 11.1 方法的声明.................................................................................................124 11.2 方法中的参数.............................................................................................125 11.3 静态和非静态的方法.................................................................................129 11.4 方法的重载.................................................................................................130 11.5 操作符重载.................................................................................................134 11.6 小 结.....................................................................................................137 第十二章 域 和 属 性.............................................................................................139 12.1 域................................................................................................................139 12.2 属 性....................................................................................................143 12.3 小 结....................................................................................................146 第十三章 事件和索引指示器...................................................................................148 13.1 事 件....................................................................................................148 13.2 索引指示器................................................................................................151 13.3 小 结....................................................................................................154 第十四章 继 承...................................................................................................155 14.1 C#的继承机制............................................................................................155 14.2 多 态 性................................................................................................159 14.3 抽象与密封................................................................................................163 14.4 继承中关于属性的一些问题.....................................................................169 14.5 小 结....................................................................................................172 第四部分 深入了解C#..............................................................................................174 第十五章 接 口...................................................................................................174 15.1 组件编程技术............................................................................................174 15.2 接 口 定 义..............................................................................................177 15.3 接口的成员................................................................................................178 15.4 接口的实现................................................................................................182 15.5 抽象类与接口............................................................................................195 15.6 小 结....................................................................................................196 第十六章 组织应用程序...........................................................................................198 16.1 基 本 概 念..............................................................................................198 16.2 使用名字空间............................................................................................200 16.3 使用指示符................................................................................................203 16.4 程 序 示 例..............................................................................................206 16.5 小 结....................................................................................................213 第十七章 文 件 操 作.............................................................................................215 17.1 .Net 框架结构提供的I/O 方式.................................................................215 17.2 文件存储管理............................................................................................217 17.3 读 写 文 件..............................................................................................222 17.4 异步文件操作............................................................................................227 17.5 小 结....................................................................................................234 第十八章 高 级 话 题.............................................................................................235 18.1 注册表编程................................................................................................235 18.2 在C #代码中调用C++和VB 编写的组件..............................................240 18.3 版 本 控 制..............................................................................................249 18.4 代 码 优 化..............................................................................................252 18.5 小 结....................................................................................................254 第五部分 附 录...................................................................................................255 附录A 关 键 字....................................................................................................255 附录B 错 误 码....................................................................................................256 附录C .Net 名字空间成员速查................................................................................269 参 考 资 料.................................................................................................................300 第一部分 C#语言概述 第一章 .NET 编程语言C# 未来5 年我们的目标就是超越今天各自为营的Web 站点把Internet 建成一个可 以互相交换组件的地方比尔.盖茨 在本章中你将了解

2008-10-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除