SELECT *,OBJECT_NAME(id) FROM syscomments
分类:
其他好文 时间:
2014-10-07 00:30:10
阅读次数:
128
So far we have seen stack diagrams, which show the state of a program, and object diagrams, which show the attributes of an object and their values. T...
分类:
其他好文 时间:
2014-10-06 20:39:30
阅读次数:
117
//DataGirdview手动添加数据
private void btnDataGirdView_Click(object sender,EventArgs e)
{
dataGridView1.Columns.Add("a","标题1");
dataGridView1.Columns.Add("b","标题2");
dataGridVie...
分类:
其他好文 时间:
2014-10-06 20:36:30
阅读次数:
129
The language feature most often associated with object-oriented programming is inheritance. Inheritance is the ability to define a new class that is a...
分类:
其他好文 时间:
2014-10-06 20:32:10
阅读次数:
192
OGNL表达式
OGNL(Object-Graph Navigation Language),可以方便地操作对象属性的开源表达式语言,使页面更简洁。主要用法有:
访问值栈中action的属性
username = 访问值栈中的对象的属性(需要get set方法)
| |
访问值栈中对象的方法
访问值栈中action的方法
访问静态方法
...
分类:
编程语言 时间:
2014-10-06 19:33:10
阅读次数:
219
建立三个线程,A线程打印10次A,B线程打印10次B,C线程打印10次C,要求线程同时运行,交替打印10次ABC。这个问题用Object的wait(),notify()就可以很方便的解决。public class MyThreadPrinter2 implements Runnable { ...
分类:
编程语言 时间:
2014-10-06 18:58:40
阅读次数:
157
http://acm.hdu.edu.cn/showproblem.php?pid=1113
Problem Description
In millions of newspapers across the United States there is a word game called Jumble. The object of this game is to solve a ri...
分类:
其他好文 时间:
2014-10-06 18:23:20
阅读次数:
231
首先,将数据库中的内容绑定到GridView中,这个方法随意,这里采用ADO.NET实现。 protected void Page_Load(object sender, EventArgs e) { SqlDataAdapter sda = new SqlDataAdapter...
分类:
其他好文 时间:
2014-10-06 17:28:50
阅读次数:
158
/*对于此类的模型为:class object{ float _x;//类的nonstatic成员函数 _vptr_Point;//指向虚函数表的指针}virtual table//虚函数表的信息(应该存放的是一些指针)slot1---type info for Point(用于支持RT...
分类:
其他好文 时间:
2014-10-06 11:23:10
阅读次数:
263
JavaScriptis aclass-free, object-oriented language, and as such, it uses prototypal inheritance instead of classical inheritance. This can be puzzling...
分类:
编程语言 时间:
2014-10-06 06:52:39
阅读次数:
386