上一页 1 ··· 144 145 146 147 148 149 150 151 152 ··· 329 下一页
摘要: Qt静态编译链接生成的exe文件,不需依赖dll,可以独立运行,发布很方便。但绝大多数用的都是Qt开源版本,如果用静态链接,会有些限制。方法之一,就是用动态编译,然后把exe和需要的dll整合成一个文件,问题就解决了。 具体步骤: 一、先动态编译链接,生成exe文件 二、找到依赖的dll文件 用Process Explore来获取所依赖的dll文件 下载: Process Explorer下载地址 打开procexp.exe,通过菜单【View】->【Lower Pane View】->【DLLs 】勾选,显示dll窗口 我们以secrecttext.exe为例,在Qt环境下,将e 阅读全文
posted @ 2013-07-09 16:00 jlins 阅读(801) 评论(0) 推荐(0)
摘要: 为了方便在ios下调用webserivce,找来了wsdl2objc这样一个开源的框架来解析webservice方便在ios下引用。 下面做个小例子。1.首先是用Asp.net搭建一个测试的webserivce并放在IIS服务器上面核心代码如下: 返回一个TTT的泛型集合//数据加载重新优化 [WebMethod(Description = "TypeTest for ios")] public List getT() { List ts = new List(); for (int i = 1; i <= 9... 阅读全文
posted @ 2013-07-09 15:58 jlins 阅读(3587) 评论(0) 推荐(1)
摘要: The mell hall题目描述In HUST,there are always manystudents go to the mell hall at the same time as soon as the bell rings.Students have to queue up for a meal,and the queue is awalys long,So it takes much time.Suposse thereare N people in a queue,each personhas two characteristic value A and B(both of t 阅读全文
posted @ 2013-07-09 15:55 jlins 阅读(193) 评论(0) 推荐(0)
摘要: 总结一些经常出现的异常信息及处理方法(会一直持续更新):异常1: 写actionscript3.0时遇到了错误。报错为:Error #2044: 未处理的 ioError:。 text=Error #2032: 流错误。解决1:flash cs 3.0 中,路径是双斜杠,比如: D:\\pic\\images.xml 阅读全文
posted @ 2013-07-09 15:53 jlins 阅读(363) 评论(0) 推荐(0)
摘要: Basics of ProbabilityProbability density function (pdf). Let X be a continuousrandom variable. Then a probability distribution or probability density function (pdf) of X isa function f(x) such that any two numbers a and b with That is, the probability that X takes on a value in the interval [a, b] i 阅读全文
posted @ 2013-07-09 15:51 jlins 阅读(284) 评论(0) 推荐(0)
摘要: 首先:这不是SSH整合的,这是单独配置Spring AOP的一个小例子。所需要的jar包:如图: 我在这里出现的两个问题: 1.没有导入asm的jar包。所报的异常为:java.lang.ClassNotFoundException: org.objectweb.asm.Type 2.发现问题后,却导入了asm-all-4.0.jar所报的异常为:java.lang.VerifyError: class net.sf.cglib.core.DebuggingClassWriter overrides final method visit.(IILjava/lang/String;Ljav... 阅读全文
posted @ 2013-07-09 15:49 jlins 阅读(3527) 评论(0) 推荐(0)
摘要: 利用C++ 单向链表实现数据结构队列,其实和上一篇基本内容相同,仅仅是插入的时候在链表的尾部插入,取元素都是一样的,都从头部取。#pragma once#include "stdio.h"//利用链表来实现队列,先进先出class queue{public: queue(void); queue(int value); ~queue(void);private: int m_value; queue* m_pnext;public: void push(int value); bool pop(int *value); bool top(int *value); bool 阅读全文
posted @ 2013-07-09 15:47 jlins 阅读(3632) 评论(0) 推荐(0)
摘要: /// /// 根据汉字获取它的字符串拼音首字母(大写),含多音字 /// /// /// public static string GetFirstSpellByChinese(string chineseStr) { int i, j, k, m; string tmpStr; string returnStr = ""; //返回最终结果的字符串 string[] tmpArr; for (i = 0; i 0) { //汉字的拼音首字母存在的情况才进行操作 if (returnStr != "") { //不是第一个汉字 Regex regex 阅读全文
posted @ 2013-07-09 15:46 jlins 阅读(2003) 评论(0) 推荐(0)
摘要: 问题面试时经常会问起字符串比较相关的问题,总结一下,大体是如下几个:1.字符串比较时用的什么方法,内部实现如何?2.hashcode的作用,以及重写equal方法,为什么要重写hashcode方法? 现在对以上几个问题,彻底做一个研究和小结.PS:本文使用jdk1.7 解析1.Object类 的equals 方法 /** * Indicates whether some other object is "equal to" this one. * * The {@code equals} method implements an equivalence relat... 阅读全文
posted @ 2013-07-09 15:44 jlins 阅读(360) 评论(0) 推荐(0)
摘要: 引起乱码原因为spring mvc使用的默认处理字符串编码为ISO-8859-1,具体参考org.springframework.http.converter.StringHttpMessageConverter类中public static final Charset DEFAULT_CHARSET = Charset.forName("ISO-8859-1"); 解决方法:第一种方法:对于需要返回字符串的方法添加注解,如下:@RequestMapping(value="/getUsers", produces = "application/ 阅读全文
posted @ 2013-07-09 15:42 jlins 阅读(44911) 评论(4) 推荐(2)
上一页 1 ··· 144 145 146 147 148 149 150 151 152 ··· 329 下一页