C/C++
文章平均质量分 62
techmotive
这个作者很懒,什么都没留下…
展开
-
CPP UNIT 使用方法收集
CppUnit——Hello, World(zz) 环境:VC2003 CppUnit:1.12.0 (如果要在VC2003下使用CppUnit需要用VC2003编译生成cppunit) 1.下载: http://sourceforge.net/projects/cppunit/ 2.安装(编译): 将下载的cppunit-1.12.0.tar.g转载 2012-11-20 21:42:08 · 522 阅读 · 0 评论 -
c/c++混合编程简明总结
因为C++是兼容C的,而C却不能兼容C++,比如多态、类等等,C都是不能识别的, 所以c/c++混合编程实际上需要做的只是让C可以调用到C++的代码,方法就是让C++代码提供符合C语言规范的接口。 1 在C++头文件中加入 extern “C"声明: #ifdef _cplusplus #if _cplusplus extern “C" { #endif #endif e原创 2012-10-30 23:16:01 · 477 阅读 · 0 评论 -
在 Visual Studio 2005 里使用 Vim 编辑代码
在 Visual Studio 2005 里,选择菜单 Tools->External Tools... 加入 Title: Vim Command: C:\Program Files\Vim\vim72\gvim.exe Arguments: --servername VS_2005 --remote-silent "+call cursor($原创 2013-05-05 11:06:16 · 877 阅读 · 0 评论 -
单目录通用Makefile
############################################## # # 单目录通用Makefile # 目标文件可自己的设定 # 始须调试程序,修改 CFLAGS 变量为-Wall -g # By Lzy # Time 2011-6-3 # ##############################################转载 2013-05-05 11:26:47 · 533 阅读 · 0 评论