摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<stdio.h>template<classT>classC{public:structA{Tx;};structB:A{inty;B(){x=10;//er... 阅读全文
posted @ 2010-03-04 11:43 Aldrich 阅读(308) 评论(1) 推荐(0)
摘要: There are three projects here1. FunctionCPlusPlus, this project contains the main logic of this demo, the classes are writtenwith unmanaged C++, and exportedto adll. If I doesn't rember wrong, this is... 阅读全文
posted @ 2009-08-23 23:46 Aldrich 阅读(263) 评论(0) 推荐(0)
摘要: 1. It's generally less work to write the code using the range member functions.Or you'd have to write an explicit loop, and the loop also happens to impose an efficiency penalty.2. Range member functi... 阅读全文
posted @ 2009-08-23 22:49 Aldrich 阅读(381) 评论(0) 推荐(0)
摘要: empty is a constant-time operation for all standard containers, but for some list implementations, size takes linear time. 阅读全文
posted @ 2009-08-23 22:06 Aldrich 阅读(179) 评论(0) 推荐(0)
摘要: This item is simple.Whether you put an object into a container, get an object from it or move objects in a container, the copying thing happens.The slicing problem should be avoided, this is an easy w... 阅读全文
posted @ 2009-08-23 08:44 Aldrich 阅读(159) 评论(0) 推荐(0)
摘要: The key point is that don't go too far inwritting code that apply to more than one container.Generally, choose the best container for you program is the best choice. 阅读全文
posted @ 2009-08-21 23:27 Aldrich 阅读(149) 评论(0) 推荐(0)
摘要: The foundation of how to choose your containers is the characteristics of those containers, the following question quoted from the book can give you some clues.1. Do you need to be able to insert a ne... 阅读全文
posted @ 2009-08-21 23:20 Aldrich 阅读(204) 评论(0) 推荐(0)
摘要: Firstly, I want to show this demo and related instructions.1.The PieChart project is offered by a friend. It include a PieChart class, which present a piechart, and some assistant classes.And it is th... 阅读全文
posted @ 2009-08-21 22:55 Aldrich 阅读(1637) 评论(8) 推荐(2)
摘要: Days ago, I was asked to introduce some technologies to the newly enrolled participants of .Net Summer Camp 2009. Before that,I was asked toenable the usage of a Winform Control written in C# in a MFC... 阅读全文
posted @ 2009-08-20 14:51 Aldrich 阅读(381) 评论(2) 推荐(0)
摘要: After days of crazy work, I found myself got something. The most obvious is that I learned some skills in programming with MFC and socket. I also got more familiar with standard C++. While the most im... 阅读全文
posted @ 2009-03-29 18:32 Aldrich 阅读(167) 评论(0) 推荐(0)