梦想起航

人生没有等出来的美丽,只有走出来的辉煌!~

导航

2013年3月19日 #

html 的 <img>标签获取路径变量问题

摘要: 首先贴上代码:ofstream print(filename); if(!print) exit(-1); print<<"<html><body>"; for(int j=0; j<K; j++){ int id = result[j].id; string file=PATH+imgs[id]; print<<"<img src=\""<<file<<"\" width=\"150\" height=\"10 阅读全文

posted @ 2013-03-19 17:08 梦想hust起航 阅读(2165) 评论(0) 推荐(0)

解决每次打开端口找不到动态链接库的方法

摘要: 在 Linux 下,如果你写好了自己的动态链接库,需要在其它程序里调用,则需要让这些程序能找到这些动态链接库。由于最近要用到java调c,,将c文件打包成.so文件,然后供java调用,可是经常会出现如下错误:Exception in thread "main" java.lang.UnsatisfiedLinkError: no knn in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734) at java.lang.Runtime.loadLibrary0(Runt 阅读全文

posted @ 2013-03-19 16:58 梦想hust起航 阅读(708) 评论(0) 推荐(0)