摘要:
1. [代码]最简单的例子 # CStruct Examplesrequire 'cstruct'# example:# struct Point in C\C++ (32-bit platform):## struct Point# {# int x;# int y;# };# str... 阅读全文
posted @ 2014-09-05 14:43
虚空之眼
阅读(853)
评论(0)
推荐(0)
摘要:
该程序主要是C++与Lua之间的相互调用示例。执行内容:(1)新建一个lua_State(2)打开常用库,如io,os,table,string等(3)注册C函数(4)导入程序所在目录下所有*.lua文件(5)调用Lua中的MainEntry()函数我们可能在lua_functions.cpp文件中... 阅读全文
posted @ 2014-09-05 14:40
虚空之眼
阅读(353)
评论(0)
推荐(0)
摘要:
1. [代码][C/C++]代码 #include #include #define ElemType int#define Status int#define OK 1#define ERROR 0typedef struct QNode{ ElemType data; struct QNo... 阅读全文
posted @ 2014-09-05 14:37
虚空之眼
阅读(569)
评论(0)
推荐(0)
摘要:
1. [代码][C/C++]代码 //Event.h#ifndef _EVENT_H_#define _EVENT_H_class EmptyObject {};templateclass Event{public:Event() :m_pObjectPtr(NULL), m_pMemeberFu... 阅读全文
posted @ 2014-09-05 14:36
虚空之眼
阅读(545)
评论(0)
推荐(0)
摘要:
用于Gvim 或 Vim 配置文件的一键编译与运行函数(注:需要机器上安装了GCC才行)本代码只加入了对C/C++的编译与运行,如果要加入其语言的可以参考此代码加入即可同时,本代码加入了对Windows下用Gvim编译UTF-8编码格式的源文件时中文乱码的解决方法(也就是在编译选项中加入了 “-fe... 阅读全文
posted @ 2014-09-05 14:34
虚空之眼
阅读(2521)
评论(0)
推荐(0)

浙公网安备 33010602011771号