http://blog.sina.com.cn/blukee[订阅][手机订阅]
个人资料
分类
    内容读取中…
评论
读取中...
图片幻灯
访客
读取中...
好友
读取中...
博文

Value Types and Reference Types

Before examining the data types in C#, it is important to understand that C# distinguishes between two categories of data type:

  • Value types

  • Reference types

The next few sections look in detail at the syntax for value and reference types. Conceptually, the difference is that a value type stores its value directly, whereas a reference type stores a reference to the value. Compared to other languages, value types in C# are basically the same thing as simple types (integer, float, but not pointers or references) in Visual Basic or C++. Reference types are the same as reference types in Visual Basic, or ar

System.object(2008-12-22 01:25)

The Object Class

As indicated earlier, all .NET classes are ultimately derived from System.Object. In fact, if you don't specify a base class when you define a class, the compiler will automatically assume that it derives from Object. Because inheritance has not been used in this chapter, every class you have seen here is actually derived from System.Object. (As noted earlier, for structs this derivation is indirect: A struct is always derived from System.ValueType, which in turn derives from System.Object.)

The practical significance of this is that, besides the methods and properties and so on that you define, you also have access to a number of public and protected member methods that have been define

Delegates

Delegates exist for situations in which you want to pass methods around to other methods. To see what that means, consider this line of code:

 int i = int.Parse('99'); 

You are so used to passing data to methods as parameters, as in this example, you don't consciously think about it; and for this reason the idea of passing methods around instead of data might sound a little strange. However, there are cases in which you have a method that does something, and rather than operating on data, the method might need to do something that involves invoking another method. To complicate things further,

 SST89E/V5xRD2、SST89E/V554RC、SST89E/V564RD SoftICE用户指南
深圳科赛电子翻译整合,
这是此公司的网址:http://www.szks.net

1、 介绍
SoftICE 的英文是Software In Circuit Emulator,翻译成中文是“在电路上的软件模拟”,它是
SST公司为方便SST用户使用SST89E/V5xRD2、SST89E/V554RC和SST89E/V564RD 单片机调试
程序所开发的开发工具。本文主要是给SoftICE 用户提供参考,让用户一个系统连接、SoftICE 特
点的清楚认识。
SST 软件和文件,请访问SST 网页http://ww
 
这是我2006年10月准备运动会的时候录得,现在看起来挺有意思的。
想起来那时候还真是干劲十足呢,嘻嘻~
现在又有运动会了,毕竟是大了一岁,自己的精力没有全投入在这个上,希望这次不要受伤就挺好的。
Describe Trend of Data(2007-10-26 09:46)
In academic context, we always need to include evidence to support our opinion or description. We should use data to explain and support what we are saying.
Data is information, especially facts and figures-numbers, percentages and dates.
We need to describe how the data has changed - that is the degree or type of change.
To describe data changes ,there are a variety of ways choices. We can use adjectives and adverbs.Of course, adjectives describe things and adverbs describe actions.
Adjectives and Nouns
 Nouns Adjec
Facts or Opinion ?(2007-10-25 11:18)
When we are writing or speaking ,we can present facts or we can use our opinion.But how can we tell the different?
 
Well, there are different ways we can express our opinion.
Today we can look at two of these: using phrase that express opinion ; using modal verbs.
 
Let's look at some phrases :
The key word to listen for when we're trying to deside whethers omeone is talking about facts or opinion are words like :believe, think, argue, feel, opinion or view .
These vary from formal to informal .
西安事变 张无忌 杨不悔
台湾回归 胡一刀 陈家落
 
 
西安事变,功在国家,祸在自身,张无忌,杨不悔
经济建设,上可强国,下可富民,温有方,胡逸之
 《程序员》杂志的编辑约我写一篇命题作文,想了几天都无从下手不知道写什么才好。在这篇文章里,我不打算将创业的艰辛与喜悦重新回忆一遍,我确实不想去误导大家,因为我所处的年代是一个物质缺乏的年代,成功相对来说要容易得多。每个人的成长经历都有其个性化的东西,每个人的成功创业经验虽然有一些可以遵循的普遍规律,但一般来说都很难复制,成功需要不断地创新。
       对于今天很多的年轻人来说,一味注重技术至上的观念刻骨铭心,其实很多时候努力并非一定有回报。
事实上,有不少出类拔萃的人才往往做出来的产品就是卖不掉,因为设计者压根儿就不了解用户的需求和心理以及产品功能的恰当定义,而总想在同事及其老板面前卖弄自己的技术和产品功能。其实有很多思维性的东西恰恰是很多人所忽视的,因为从一开始的出发点就错了,怎么可能取得辉煌的成绩呢?所以有时拥有卓越的技术并不一定代表人生的成功,很多企业就是死在一些自命不凡的“卓越人才”手中。

它山之石可以攻玉,减少“阶段0”的开发
       有所“创
 1、 data区空间小,所以只有频繁用到或对运算速度要求很高的变量才放到data区内,比如for循环中的计数值。

2、 data区内最好放局部变量。

因为局部变量的空间是可以覆盖的(某个函数的局部变量空间在退出该函数是就释放,由别的函数的局部变量覆盖),可以提高内存利用率。当然静态局部变量除外,其内存使用方式与全局变量相同;

3、 确保你的程序中没有未调用的函数。

在Keil C里遇到未调用函数,编译器就将其认为可能是中断函数。函数里用的局部变量的空间是不释放,也就是同全局变量一样处理。这一点Keil C做得很愚蠢,但也没办法。

4、 程序中遇到的逻辑标志变量可以定义到bdata中,可以大大降低内存占用空间。

在51系列芯片中有16个字节位寻址区bdata,其中可以定义8*16=128个逻辑变量。定义方法是: bdata bit LedState;但位类型不能用在数组和结构体中。

5、 其他不频繁用到和对运算速度要求不高的变量都放到xdata区。

6、 如果想节省data空间就必须用large模式,将未定义内存位置的变量全放到xdata区。当然最好对所有变量都要指定内存类型。

7、