GenVoca 架構GenVoca是一種軟體架構,與policy-based架構類似的是,它的最終成品也是由各個組件組裝而成的,但是組織的方式有所不同。在Policy-based架構中,組件作為具體的policy實現被添加到host class以實現相應的功能,而在GenVoca中組件作為wrappers (layers) on top of a more basic components adding functionality to
有下面一段代碼,目的是實現事件的繼承: 基類: public class BaseBusiness { //聲明事件委託 public delegate void ProgressEventHandler(int progress, string msg); //聲明事件 public event ProgressEventHandler ProgressEvent;
之前看到lvalue,rvalue,const lvalue,non-const lvalue,non-const rvlue?! 被搞的一直在雲端運算中…,不理解C++0X右值引用能幹些啥,看到這篇,標記一下原文: Rvalue References: C++0x Features in VC10, Part 2 譯文: VC2010中的C++0x特性 Part 2:右值引用原譯作應當是:http://www.cppblog.com/kesalin/archive/2009/06/01/86
添加引用sqldmo.dll安裝了SqlServer2000 就有了,在添加引用中找它最好使用SQL Server 2000的SP3的sqldmo.dllusing SQLDMO; SQLDMO.ApplicationClass sqlApp = new SQLDMO.ApplicationClass(); SQLDMO.NameList nameList; int i = 0; nameList =
On DotNet Board of USTC BBS, orochi recommended a book named “Functional Programming For The Real World”. It demonstrates advantages of functional programming towards traditional imperative programming, which inspires me a lot. Here, I will first
文章目錄 Text editingWebPages downloading In this article, I will introduce two sample scenes to demonstrate how we can use functional programming to make the code more intuitive, more elegant and more parallel.Text
引言最近在找C++的數值庫,最後終於找到一個近乎完美的eigen,介面優雅,使用方便,速度快,文檔詳盡。。。 幾乎沒有缺點,缺點可能是庫的設計者要辛苦一些。。。。另外疏鬆陣列的部分還在開發階段沒有完全成熟。裡面提到了矩陣相乘相加等等可以直接用 D =A * B *C 這樣寫,而不是類似boost::ublas(這個庫的好處是在boost下,其它的比eigen差遠了。。個人覺得)要寫成 prod(A,B)。為什麼ublas不用運算子號重載呢?