- 博客(35)
- 资源 (1)
- 收藏
- 关注
转载 C++0x
《C++0x漫谈》系列之:Concept, Concept!http://blog.youkuaiyun.com/pongba/article/details/1726031关于C++ 0x 里垃圾收集器的讲座http://blog.youkuaiyun.com/g9yuayon/a
2011-08-06 11:14:56
532
转载 C++的未来,以及未来的未来
转自http://topic.youkuaiyun.com/u/20070823/16/b0152193-7a99-4238-97ef-47d99897af2e.htmlC++的未来,以及未来的未来 7月15日-20日,标准委员会在Toronto开了一次会,IBM做的东。从会后的文档
2011-08-06 10:20:05
874
原创 windows下eclipse cdt 无法运行和调试程序,没有输出(调试和运行时不修改系统变量导入第三方dll库)
报错:You can't do that without a process to debug.原因:windows下待调试的程序运行时需要引用的动态库dll文件没有找到(虽然编译时连接器需要的库已经给出,但运行时仍然需要给出链接库所在的位置),但cdt又不给任何提示
2011-08-05 17:17:27
3247
转载 使用boost.bind绑定class的成员函数作为boost thread的入口
class HelloWorld{public: void hello(); void entry();};void HelloWorld::entry(){ boost::thread thrd(&HelloWorld::hello);
2011-08-05 15:35:13
4693
原创 c++的virtual多态小实验
class Abstract{public: virtual void foo() const { std::cout << "Abstract::foo()" << std::endl; } void foo2() const { std::cout <<
2011-08-02 21:21:40
714
原创 const 函数调用类的非const成员函数报错
class Abstract{public: virtual void foo() = 0;};class Derived : public Abstract{public: virtual void foo() { std::cout << "Deriv
2011-08-02 20:50:31
1154
转载 mplayer shortcuts
ShortcutCommandHow useful(?)Keyboard control MPlayerSeek backward/forward 10 seconds. + – up and downSeek forward/backward 1 minute. +
2011-07-28 09:54:22
1145
原创 c++ const参数
void Print1(int &a){ std::cout }void Print2(const int &a){ std::cout }void Print3(const int a){ std::cout }void Print4(int a) { std::cout }i
2011-07-25 21:29:57
1786
转载 stl exception hierarchy
* std::exception * std::bad_alloc * std::bad_cast * std::bad_exception * std::bad_typeid * std::ios_base::failure * std::logic_error
2011-07-25 16:29:34
509
转载 reinterpret_cast的本质
http://blog.youkuaiyun.com/coding_hello/article/details/2211466
2011-07-25 14:46:43
435
转载 fwrite fopen > 2GB file
I had a problem with a > 2G textfile to be parsed by flex. Putting %top{#define _FILE_OFFSET_BITS 64}in the definitions part of the flex inp
2011-07-20 14:23:14
809
转载 eclipse cdt + mingw 使用第三方 STL库
配置路径在Project的Properties->C/C++ General->Paths and Symbols->Includes
2011-07-19 12:50:36
2399
转载 boost mingw 编译
http://www.cppblog.com/xinus/archive/2011/03/01/140854.aspx
2011-07-18 16:25:40
2693
原创 多生产者,多消费者,延迟读写,有限环形缓冲区
/** * @Author: yangrenyong AT gmail D#OT com * @Date: 2011-7-14 */#include#include#include#include#includestruct ReadyType{ Rea
2011-07-15 09:09:45
1319
转载 template class static member initialize
template class TemplatedClassT{static int staticMember_;};class A{//....};//...//...initialize//...template<>int Templated
2011-07-12 14:13:48
599
转载 G++ 编译器主要命令
http://hi.baidu.com/itpassion/blog/item/74e22806f048b57a030881ae.html
2011-07-11 09:39:24
520
转载 读者写者问题(写者优先)的信号量及PV操作解决方案
http://www.cublog.cn/u/29270/showart_1886672.html
2011-07-07 00:33:38
8232
转载 纯虚析构函数作为接口
其构造函数应当注意的问题:http://www.cnblogs.com/wonderow/archive/2005/09/15/237994.html
2011-07-07 00:29:59
290
原创 C++中怎样区分内置类型和类类型?
方法一:template struct is_builtin;template struct is_builtin{ enum {value=1};}如此类推,可以从boost.traits里边找找,直接复制粘贴方法二:用typeid
2011-07-07 00:28:30
729
原创 奇怪的找不到类型错误-头文件互相包含
报错:./src/MemPageMaster.h:54: 错误:‘Page’ 不是 ‘Distrim’ 的成员../src/MemPageMaster.h:54: 错误:expected primary-expression before ‘,’ token.
2011-07-06 20:14:27
1207
原创 编译boost mpi
版本boost1.46.1,系统 CentOS 5.5, 已安装 mpich2-1.4,进入 .../boost_1_46_1/tools/build/v2 目录,修改 user-config.jam 文件, 在文件中添加一行:using mpi ;重新运行b
2011-07-06 15:09:29
3076
原创 中科院博士学位论文模板-参考文献按引用顺序排序
打开CASthesis文件,找到\RequirePackage[sort&compress,numbers]{natbib}改为\RequirePackage[compress,numbers]{natbib}找到\bibliographystyle{plai
2011-07-05 21:25:44
6204
转载 参考文献natbib的使用
转载自:http://zhaoshiliang.wordpress.com/2010/07/27/%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AEnatbib%E7%9A%84%E4%BD%BF%E7%94%A8/参考文献的引用通常有两
2011-07-05 20:40:36
14636
转载 c++模板类/模板函数的声明与定义应该放在头文件里,不要分开来写类中函数的声明与定义
c++模板类/模板函数的声明与定义应该放在头文件里,不要分开来写类中函数的声明与定义(比如在.H文件里声明某个成员函数,在.CPP文件里定义该成员函数),这样会导致连接错误。所应该将模板类/模板函数的定义与声明写在一个.h文件里。
2011-07-05 10:11:48
850
原创 备记[cpp更改类名应该修改的相应地方]
cpp更改类名应该修改的相应地方:1. h和cpp的文件名2. h文件中的类名,构造函数名称,析构函数名称,宏名,含有该类scope说明的成员函数定义3. 对应cpp文件中所有含有该类scope说明的成员函数定义,其他#include了该h文件的所有引用4.
2011-07-04 22:50:49
1209
转载 [转] 如何让latex表格中一个单元格的文字换行(转)
问题:如何同时让表格同一行一个单元格的文字能垂直居中?比如说文字超长超出页面范围需要分行显示答:(来源于smth)方案一:/newcommand{/tabincell}[2]{/begin{tabular}{@{}#1@{}}#2/end{tabular}}%然后使用&/tabincell{c}{}&就可以在表格中自动换行%比如这么用/begin{tabular}{|c|c|}/h
2011-06-14 16:39:00
9483
转载 【转】LaTeX制作pdf文件书签乱码问题
http://blog.sina.com.cn/s/blog_5e16f1770100ls69.html
2011-05-08 17:22:00
1320
原创 CentOS 5.5上编译安装wesnoth 1.8.5,菜单乱码解决
<br />CentOS 5.5上编译安装wesnoth 1.8.5, 菜单出现乱码,经google后的解决方法仍不行,后发现解决方法:<br />将游戏自带的/usr/local/share/wesnoth/fonts/wqy-zenhei.ttc字体删除,从系统/usr/share/fonts/目录下找到一种ttf字体,复制或者链接到/usr/local/share/wesnoth/fonts/目录下,命名为wqy-zenhei.ttc,问题解决。<br /><br />问题原因:游戏自带的wq
2011-05-04 09:55:00
554
转载 LaTeX常用代码片段
公式断为多行,左对齐,加label并且只有一个编号:/begin{equation}/label{labelname}/begin{split}&片段一//&片段二//&片段三//&....///end{split}/end{equation}右对齐时符号"&"加在公式片段的右边。//不能漏该行公式不加编号:/begin{equation}前加/nonumber%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%使用中科院博士论文模板时出现编译错误:! Use of /@i
2011-05-03 14:32:00
2381
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人