- 博客(5)
- 资源 (1)
- 收藏
- 关注
转载 define中的三个特殊符号:#,##,#@
define中的三个特殊符号:#,##,#@#define Conn(x,y) x##y#define ToChar(x)#@x#define ToString(x)#x(1)x##y表示什么?表示x连接y,举例说:int n = Conn(123,456);/* 结果就是n=123456;*/char* str= Conn("asd
2014-04-01 10:45:30
1150
原创 小结c++中使用python时的互调
C++ 调用pythonC++调用python接口,对于c++方来说,需要python提供其c接口;对于python来说,需要理解c++参数。Python作为一个脚本语言,首先要在c中初始化生成解析器:Py_Initialize()一个Python脚本对应一个包,接下来将需要的脚本加载到解析器:PyObject *pModule =
2014-01-13 18:48:42
912
转载 PyArg_ParseTuple format 格式
Format Strings for PyArg_ParseTuple() The PyArg_ParseTuple() function is declared as follows: int PyArg_ParseTuple(PyObject *arg, char *format, ...); The arg argument must be a tuple o
2014-01-13 10:57:42
10421
转载 linux 结束程序的一些信号
SIGINT程序终止(interrupt)信号, 在用户键入INTR字符(通常是Ctrl-C)时发出,用于通知前台进程组终止进程。 SIGQUIT和SIGINT类似, 但由QUIT字符(通常是Ctrl-\)来控制. 进程在因收到SIGQUIT退出时会产生core文件, 在这个意义上类似于一个程序错误信号。SIGTERM程序结束(terminate)信号, 与SI
2014-01-08 12:04:58
1019
原创 std::map less方法的用处
CompareA binary predicate that takes two element keys as arguments and returns a bool. The expression comp(a,b), where comp is an object of this type anda and b are key values, shall return tr
2013-12-27 10:54:47
1939
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人