- 博客(5)
- 资源 (10)
- 收藏
- 关注
原创 QT + OpenCV 配置
新建一个工程在 *.pro 文件中添加:INCLUDEPATH += /usr/local/include/opencvLIBS += /usr/local/lib/libopencv*示例:#include #include int main(){IplImage *img = 0;img = cvLoadImage("Lena.bmp",-1);//
2013-05-25 22:24:15 653
原创 linux C 生成与使用 so 文件
// test.c-------------------------------------#include "test.h"int a(){ printf("a"); return 0;}int b(){ printf("b"); return 0;}//test.h---------------------------------------------------
2013-05-23 23:43:41 1088 1
原创 GO 语言调用C函数(实例)
先自行定义一个关头文件 test.h:#include #include extern int fun(char *str){ printf("%s\n",str); return 0;}这个fun函数输入一个字符串,下面用go语言去调用它package main//#include "test.h"import "C"func main(){ C.
2013-05-04 10:19:58 1613
原创 GO 语言 读写文件
package mainimport ( "fmt"//这个包含各种各样的输入输出 "os" )func main(){ var f *os.File;//file handle var err error; f ,err = os.Open("a.xml");// 创建文件可以用 os.CreateFile("a.xml"); if err != nil { fmt
2013-05-04 09:15:01 1952
原创 GO语言 使用hash 表
package main import ( "fmt" ) type Data struct{ date string; value int; } func main() { fmt.Printf("hello world!\n"); var m = make(map[string]int); //创建一个空白的hash m["str1"] = 10;
2013-05-03 23:36:25 2304
Support Vector Machines
2018-03-02
信息论(英文版)
2018-03-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人