这是我的感觉,具体需要研究一下~ 找到一篇文章:在构造和析构中抛出异常 测试验证在类构造和析构中抛出异常, 是否会调用该类析构. 如果在一个类成员函数中抛异常, 可以进入该类的析构函数. [cpp] view plain copy /// @file ClassroomExamples.cpp // Read More
posted @ 2015-08-29 19:46
findumars
Views(1020)
Comments(0)
Diggs(0)
Delphi编程中资源文件的应用/转自http://chamlly.spaces.live.com/blog/cns!548f73d8734d3acb!236.entry一、引子:现在的Windows应用程序几乎都使用图标、图片、光标、声音等,我们称它们为资源(Resource)。最简单的使用资源的... Read More
posted @ 2015-08-29 19:44
findumars
Views(475)
Comments(0)
Diggs(0)
大家都认为,C语言之所以强大,以及其自由性,很大部分体现在其灵活的指针运用上。因此,说指针是C语言的灵魂,一点都不为过。同时,这种说法也让很多人产生误解,似乎只有C语言的指针才能算指针。Basic不支持指针,在此不论。其实,Pascal语言本身也是支持指针的。从最初的Pascal发展至今的Objec... Read More
posted @ 2015-08-29 19:15
findumars
Views(680)
Comments(0)
Diggs(0)
bool是LongBool类型。 Delphi中定义了四种布尔类型:Boolean,ByteBool,WordBool和LongBool。后面三种布尔类型是为了与其他语言兼容而引入的,一般情况下建议使用Boolean类型。这四种类型的布尔值占用内存的数量如下:Boolean 1 ByteByteBo Read More
posted @ 2015-08-29 19:10
findumars
Views(1323)
Comments(0)
Diggs(0)
一、初始化控件状态 procedure TForm7.FormCreate(Sender: TObject); begin with StringGrid1 do begin ColWidths[0] := 15; Cells[1, 0] := 'Combobox'; ColWidths[1] := Read More
posted @ 2015-08-29 09:46
findumars
Views(171)
Comments(0)
Diggs(0)