Quantcast
Channel: C++博客-所有随笔
Browsing all 7882 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

观察者模式--python

参见:http://baike.baidu.com/view/1854779.htmhttp://blog.csdn.net/huangkangying/article/details/7901602实现观察者模式的过程实现观察者模式有很多形式,比较直观的一种是使用一种“注册——通知——撤销注册”的形式。下面的三个图详细的描述了这样一种过程: 1、观察者...

View Article


Image may be NSFW.
Clik here to view.

DUILib 中的通知事件

CTabLayoutUI               tabselect              调用SelectItem选择了某一项时通知。CActiveXUI                    showactivex         创建完成后,显示时通知。CCombUI                       itemselect...

View Article


Image may be NSFW.
Clik here to view.

Oracle Redo Log 机制 小结(转载)

     摘要: Oracle 的Redo 机制DB的一个重要机制,理解这个机制对DBA来说也是非常重要,之前的Blog里也林林散散的写了一些,前些日子看老白日记里也有说明,所以结合老白日记里的内容,对oracle 的整个Redo log 机制重新整理一下。 一.Redo log 说明Oracle 的Online redo log 是为确保已经提交的事务不会丢失而建立的一个机制。...

View Article

Image may be NSFW.
Clik here to view.

一款简单的正则表达式处理模块([转]Fast-regular-expressions)

原文出处:http://www.codeproject.com/Articles/798/Fast-regular-expressions Fast regular expressions By Martin Holzherr, 29 Oct 2000   Download source files - 10.9 KbDownload demo project - 49.8 Kb...

View Article

Image may be NSFW.
Clik here to view.

重载符号的选择

在C++中重载运算符要使用标准中的运算符,如下面重载了new   void *operator _new()为不与标准的“名字冲突”,选择了_new。可在vs2008中编译不过星哥 2013-01-08 20:07 发表评论

View Article


Image may be NSFW.
Clik here to view.

dynamic_cast 不破坏 const 函数

在const 函数中对数据成员使用dynamic_cast 可行。原因:    dynamic_cast 是运行时, const 检查 是编译时不同阶段互不影响星哥 2013-01-08 20:37 发表评论

View Article

Image may be NSFW.
Clik here to view.

string比较确定

逐个比较,直到不同的字母时:字母表前的要比字母后的小;若是子串关系,则子串小星哥 2013-01-08 20:48 发表评论

View Article

Image may be NSFW.
Clik here to view.

246 - 问,2013年计划

经过认真考虑,并吸取以往定计划的教训(计划不切合实际,盲目追求“量”,而不是“质量”),制定了2013年计划。 2013年计划宗旨:专一,不变。 2013年计划目标:提高内功。 公示于此,一年后看结果。 朱峰everettjf 2013-01-08 21:29 发表评论

View Article


Image may be NSFW.
Clik here to view.

linux下的汇编:ATT和Intel格式

     摘要: Intel格式和ATT格式不同之处,gcc常用的有关汇编的基本操作  阅读全文Benjamin 2013-01-08 22:22 发表评论

View Article


Image may be NSFW.
Clik here to view.

MFC实现窗口可拖动

有两种应用场景:   1、在除了标题栏以外,点击窗口的其它部分可以拖动窗口。   2、没有标题栏的弹出窗口,点击部分区域或者全部区域,拖动窗口。实现方法:...

View Article

Image may be NSFW.
Clik here to view.

ALUBusy question

     摘要: http://devgurus.amd.com/thread/158655ALUBusy question此问题 已被回答。viscocoa 2012-2-20 下午2:39What does ALUBusy in APP profiler really mean? If there is branching in a kernel, the SIMD unit wi......

View Article

Image may be NSFW.
Clik here to view.

vSphere Data Protection 备份失败

E100007: Miscellaneous error 到VDP 控制台去查看日志后 有以下结果。avvcbimage error  12041   disk size in backup  is different than target and changed block processing was requested, restore of disk   at    failed...

View Article

Image may be NSFW.
Clik here to view.

2012迟到的总结

...

View Article


Image may be NSFW.
Clik here to view.

写出健壮的 Bash 脚本

许多人用shell脚本完成一些简单任务,而且变成了他们生命的一部分。不幸的是,shell脚本在运行异常时会受到非常大的影响。在写脚本时将这类问题最小化是十分必要的。本文中我将介绍一些让bash脚本变得健壮的技术。 使用set -u 你因为没有对变量初始化而使脚本崩溃过多少次?对于我来说,很多次。chroot=$1 ... rm -rf $chroot/usr/share/doc...

View Article

Image may be NSFW.
Clik here to view.

曾经的3D资料的网址

http://blog.csdn.net/trcj1/article/details/6163753 http://blog.sina.com.cn/s/blog_5e6fd4290100nhxa.html  http://www.cppblog.com/richardhe/archive/2008/03.html...

View Article


Image may be NSFW.
Clik here to view.

算法相关的网址

http://www.csie.ntnu.edu.tw/~u91029/  台湾的国立师范大学 http://www.notonlysuccess.com/  国内搞ACM的 http://www.keithschwarz.com/  一个老外用STL实现的算法代码 http://www.possibility.com/Cpp/CppCodingStandard.html  CPP代码规范...

View Article

Image may be NSFW.
Clik here to view.

Understanding performance counters

     摘要: http://devgurus.amd.com/thread/159558Understanding performance counters此问题被 假设已回答。chersanya 2012-8-5 下午12:03I have a kernel, and each workitem processes tens of elements (firstly perform...

View Article


Image may be NSFW.
Clik here to view.

Dino Windows 8 学习笔记(十五)-- App Settings

     摘要: 介绍添加App Settings 的简单步骤,通过本文,你可以添加调用一个App Settings Pane。  阅读全文Dino-Tech 2013-01-09 13:51 发表评论

View Article

Image may be NSFW.
Clik here to view.

MinGw编译Boost

MinGw编译Boost(金庆的专栏)在MinGw Shell中运行bootstrap.sh失败Jinq@jinqing-pc /d/src/boost_1_52_0$ bootstrap.sh toolset=gccBuilding Boost.Build engine with toolset gcc...Failed to build Boost.Build build...

View Article

Image may be NSFW.
Clik here to view.

Low ALUBusy and low FetchUnitBusy

http://devgurus.amd.com/thread/158866Low ALUBusy and low FetchUnitBusy此问题 未被回答 。NURBS 2012-3-19 下午1:35Hi,      When my kernel performs badly, the APP profiler reports a very low ALUBusy and low...

View Article
Browsing all 7882 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>