随笔分类 -  c/c++

摘要:typedef unsigned int UINT; //2字节typedef unsigned long DWORD; //4个字节(32伟)1、位图文件头:(14Byte)1 typedef struct tagBITMAPFILEHEADER { /* bmfh */ 2 UINT bf... 阅读全文
posted @ 2014-04-23 21:10 _level_ 阅读(543) 评论(0) 推荐(0)
摘要:vc++6.0中选择Tools->Options->目录,加入include和lib的路径,这样就可以添加头文件,直接引用包含的库函数。是不是so easy。vc2010中在项目上右键属性,link,添加库和lib 阅读全文
posted @ 2014-04-09 21:29 _level_ 阅读(214) 评论(0) 推荐(0)
摘要:首先编写一个python脚本,命名为pytest.py;1 def add(a,b):2 print "in python function add"3 return a+bc调用python示例: 1 #include 2 #include 3 //#include "C:/Python27/include/python.h" 4 //#pragma comment(lib, "C:\\Python27\\libs\\python27.lib") 5 //若在编译器设置了include和lib路径以上两行可以转化为 6 #inclu 阅读全文
posted @ 2014-04-09 08:38 _level_ 阅读(2141) 评论(0) 推荐(0)