自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (1)
  • 收藏
  • 关注

转载 《程序员》杂志推荐 C++ 开源程序库

1、系统和网络编程库:ACE    除了ACE之外,还有很多系统和网络编程方面的程序库。比如在线程库方面,还有ZThread、boost::thread,如果放大到C/C++领域,还有APR,还有CII。在文件和目录操作方面,boost也有相应的组件,而在网络编程方面有socket++,还有boost::asio,未来的C++0X中几乎肯定有一个网络编程和一个线程库。然而目前看来,ACE仍然是进行

2008-12-23 22:20:00 503

转载 单件模式的C++模板实现

  单件模式有什么用处,请自行查阅相关书籍:/* $Log: E/VC/TEST/TESTCONSOLE/JYSINGLETON2.H $ * $Source: /ye/vc/test/testConsole/jySingleton2.h *///$////////////////////////////////////////////////////////////////$  jySi

2008-12-20 18:30:00 518

转载 单件模式的C++标准实现

  我还是在下边加入关于单件的相关说明先://****************************************************************//3.5 SINGLETON(单件)—对象创建型模式//1. 意图//  保证一个类仅有一个实例,并提供一个访问它的全局访问点。//2. 动机//  对一些类来说,只有一个实例是很重要的。虽然系统中可以有许多打//印

2008-12-20 18:28:00 307

转载 弹出式菜单

 弹出式菜单(PopMenu)大家都熟悉,在WIN98的桌面上单击鼠标右键弹出的菜单就是弹出式菜单。通常情况下,弹出式菜单在鼠标右键单击时弹出,当然,也可以根据需要随时弹出。 在VC++5的MFC中,管理菜单的类叫CMenu。下面我向大家介绍建立一个弹出式菜单的基本方法。 一、在资源编辑器中建立一个菜单资源  新建一个菜单资源,比如把菜单的ID号为IDC_POPMENU。此菜单有一项两层,即有一个

2008-12-19 15:20:00 591

转载 函数调用规范__cdecl和__stdcall的区别一目了然(表格形式)

  __cdecl   __stdcall C 和 C++ 程序的缺省调用规范 为了使用这种调用规范,需要你明确的加上 __stdcall (或 WINAPI )文字。即 return-type __stdcall function-name[(argument-list)]   在被调用函数 (Cal

2008-12-18 20:19:00 234

转载 Dialog & Windows 使用技巧

 1. 在任务栏隐藏对话框      ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW); 2. 使对话框为顶层窗口    SetWindowPos(&this->wndTopMost, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE); 3. 在运行时添加最大化,最小

2008-12-18 19:17:00 562

转载 VC创建快捷方式

 //创建快捷方式   // 使用方法,给a.exe创建快捷方式   // CreateLink("c://a.exe",    "d://a.lnk");BOOL    CreateLink(LPSTR szPath, LPSTR szLink)   {   CoInitialize(NULL);   HRESULT    hres;   IShellLink*    psl;   IP

2008-12-18 19:04:00 803 1

转载 用VC设计托盘图标程序

 (作者:宋端智 2000年09月20日 18:09)  在Windows操作系统中,任务栏的右边(托盘)会常驻几个图标,如输入法切换图标、音量控制图标等,此外我们还经常遇到具有托盘图标的软件,如金山词霸、实时监测功能的杀毒软件等。这些软件在后台运行,通常不占用太多的屏幕资源,只在通知栏上放一个小小的标志,必要时我们可以通过用鼠标点击图标对其进行选单操作或激活其主窗口。有时我们自己编写的程序也

2008-12-18 18:58:00 324

转载 实现透明窗体

 一、背景   FlashGet的透明效果大家羡慕吧。传统的Windows应用程序想实现半透明效果,一般来说需要处理自己的窗口的WM_Paint消息窗口,很麻烦.现在好了,SetLayeredWindowAttributes是windows的新api,win2000以上才支持,它能使使窗体拥有透明效果.我在Google搜了下,介绍SetLayeredWindowAttributes的文章大多是de

2008-12-18 18:55:00 349

转载 右键菜单

 函数完成了弹出式菜单的创建,只要在右键点击的消息响应中调用就能完成想要的右键菜单的功能! 平时经常会看到一些软件把一些常用的功能集成在右键菜单中,这样能够是菜单灵活,易用! 以下函数完成了弹出式菜单的创建,只要在右键点击的消息响应中调用就能完成想要的右键菜单的功能! void PopupMenu() {     CPoint point;     GetCursorPos( & point );

2008-12-18 18:15:00 321

转载 MFC accelerator 与 注册系统热键

方法一:         http://support.microsoft.com/?kbid=222829         1   插入一个新的Accelerator到资源里,把加速键和对应的响应控件(如一个按钮)关联     2   在对话框头文件中声明:         HACCEL   m_hAccel;     3   在对话框的构造函数里初始化m_hAccel         m_hA

2008-12-18 17:46:00 1503

转载 MFC窗口销毁过程

  考虑单窗口情况:   假设自己通过new创建了一个窗口对象pWnd,然后pWnd->Create。则销毁窗口的调用次序:   1. 手工调用pWnd->DestroyWindow();   2. DestroyWindow会发送WM_DESTROY;   3. WM_DESTROY对应的消息处理函数是OnDestroy();   4. DestroyWindow会发送WM_NCDESTRO

2008-12-18 17:31:00 290

Evaluation of IEEE 754 Floating -Point Arithmetic

Title:Evaluation of IEEE 754 Floating -Point Arithmetic Compliance Across a Wide Range of Heterogeneous Computers Introduction:Scientific applications rely heavily on floating-point arithmetic[1] and, therefore, are affected by the precision and implementation of floating-point ope rations.Although the computers we use are IEEE compliant, this only assures the same representation of floating-point numbers; it does not guarantee that floating- point operations will be performed in the same way on all computers [ 4]. This may result in divergences in intermediate results that can be significantly amplified by the chaotic nature of some applications [ 2], where loops are iterated a large number of times, leading to significantly different final results when a computation, e.g., a simulat ion, is performed on different computers [ 6]. Since such behavior can constrain the employment of multiple computers in scientific research, this problem is an important one. Accordingly, this paper reports on our findings of running a well - known test sui te, IeeeCC754, that is used to evaluate IEEE 754 compliance across a wide range of heterogeneous computers with different architectures, operating systems, precisions, and compilers. The rest of the paper is organized as follow s. In Section 2 we give a s hort overview of the IEEE 754 floating - point arithmetic standard. Sections 3 and 4 describe the IeeeCC754 test suite and the way we use it to evaluate IEEE 754 compliance across a set of heterogeneous computer systems. Our test results are presented in Section 5. Sections 6 and 7 discuss future work and summarize the contribution of this paper.

2013-08-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除