Chip Studio

常用链接

统计

最新评论

2008年2月26日 #

typedef 数组

     摘要:   阅读全文

posted @ 2008-02-26 17:08 MyChip| 编辑 收藏

关于C/C++语言中头文件的使用的一些看法

     摘要:   阅读全文

posted @ 2008-02-26 14:04 MyChip| 编辑 收藏

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);    

}

posted @ 2008-02-06 03:00 MyChip| 编辑 收藏

2008年2月2日 #

硬盘参数读取类型

     摘要: 写了一个类型,用于读取硬盘物理参数.  阅读全文

posted @ 2008-02-02 04:50 MyChip 阅读(1837) | 评论 (0)编辑 收藏

2008年2月1日 #

STL与美

#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;
}

posted @ 2008-02-01 00:12 MyChip| 编辑 收藏

2008年1月31日 #

PDF与乱码---一篇好文章

http://hi.baidu.com/52abc/blog/item/85f658b5e6dbbccd37d3ca66.html

posted @ 2008-01-31 03:26 MyChip| 编辑 收藏

仅列出标题