
置顶随笔
千万不要急,欲速则不达!
先学会走,在想着跑。
学习计算机技术的一个方法:勤动脑,勤动手。

2008年2月19日
千万不要急,欲速则不达!
先学会走,在想着跑。
学习计算机技术的一个方法:勤动脑,勤动手。

2008年2月6日
function TCustomStatusBar.ExecuteAction(Action: TBasicAction): Boolean;
begin
if AutoHint and (Action is THintAction) and not DoHint then
begin
if SimplePanel or (Panels.Count = 0) then
SimpleText := THintAction(Action).Hint else
Panels[0].Text := THintAction(Action).Hint;
Result := True;
end
else Result := inherited ExecuteAction(Action);
end;
在MDI中谁来CALL?
bool TCustomStatusBar::ExecuteAction(TBasicAciton& Action)
{
if(AutoHint && Action.IsKindOf(THintAction) && !DoHint())
if (SimplePanel || Panels.Count == 0)
SimpleText = Action.Hint
;
else
Panels[0].Text = Action.Hint;
return true;
return Base::(?)ExecuteAction(Action);
}

2008年2月4日
DELPHI 这个脚本环境还真不赖。
(别给我讲啥是语言,啥是脚本,啥是编译,啥是解释,偶懂)

2008年2月3日
看了《集结号》,才知道什么是男人。

2008年2月2日
真正的C++的美,也许能在UNIX/LINUX中才能找的到。
摘要: 写了一个类型,用于读取硬盘物理参数.
阅读全文

2008年2月1日
摘要:
阅读全文
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
using namespace std;
int main(void)
{
typedef vector<int> int_vector;
typedef istream_iterator<int> istream_itr;
typedef ostream_iterator<int> ostream_itr;
typedef back_insert_iterator< int_vector > back_ins_itr;
// STL中的vector容器
int_vector num;
// 从标准输入设备读入整数,
// 直到输入的是非整型数据为止
copy(istream_itr(cin), istream_itr(), back_ins_itr(num));
// STL中的排序算法
sort(num.begin(), num.end());
// 将排序结果输出到标准输出设备
copy(num.begin(), num.end(), ostream_itr(cout, " "));
cout<<endl;
return 0;
}