跳槽到了新的公司,开始苦逼的出差现场开发,接触到了新的应用。有很多应用需要将Table导出成表格,可以把table导出成csv格式的文件。跟大伙分享一下;
lass TableToExcle : public QDialog
{
Q_OBJECT
public:
TableToExcle(QWidget *parent = 0, Qt::WFlags flags = 0);
~Table...
分类:
其他好文 时间:
2014-07-08 18:54:53
阅读次数:
319
Method 1: Add one list into the other list.
For example, if list1is {22, 33, 44, 55} and list2 is {66, 77, 88, 99},then append(list1, list2)will change list1to {22, 33, 44, 55, 44, 66, 77, 88, 99}.
...
分类:
其他好文 时间:
2014-07-08 16:18:22
阅读次数:
196
stl的通用算法基本有如下四种形式:
alg(beg, end, params):使用源输入作为输出
alg(beg, end, dest, params) :使用dest作为输出,需要保证有足够的空间,所以往往使用inserter
alg(beg, end, beg2, other params):beg2作为输出,假定beg2开始的范围至少跟beg和end指定的范围一样大。
alg(beg, end, beg2, end2, params):beg2 end2作为输出
举例:
第一种比如:
fin...
分类:
其他好文 时间:
2014-07-08 14:42:03
阅读次数:
144
通过注解方式注入并使用其他EJB或者服务
真实项目EJB对象很多,EJB之间也可以互相调用,
在项目HelloWorld下新建接口Other
在cn.hqu.ejb3下:
public
interface Other {
public
abstract String sayMe();
}
新建实现类OtherBean在cn.hqu.ejb3下:
publ...
分类:
其他好文 时间:
2014-07-08 13:44:27
阅读次数:
240
1.config.properties文件写不进中文,写进去都变成了unicode,解决办法是右键该文件——Properties——Resource——Text file encoding ,选other,我将other改为了UTF-8,这样可以写进去中文,但是读取时又变成乱码了。
2,解决读取乱码:
String content = new String(PropertiesConfig.getProperty("mail.content").getBytes("ISO8859-1"), "utf-8"...
分类:
编程语言 时间:
2014-07-08 13:23:03
阅读次数:
160
TaskdescriptionAsmallfrogwantstogettotheothersideofariver.Thefrogiscurrentlylocatedatposition0,andwantstogettopositionX.Leavesfallfromatreeontothesurfaceoftheriver.Youaregivenanon-emptyzero-indexedarrayAconsistingofNintegersrepresentingthefallingleaves.A[K]..
分类:
其他好文 时间:
2014-07-08 12:08:25
阅读次数:
179
题目如下:
Play on Words
Some of the secret doorscontain a very interesting word puzzle. The team of archaeologists has tosolve it to open that doors. Because there is no other way to open the doors,...
分类:
其他好文 时间:
2014-07-06 12:12:36
阅读次数:
221
1、主题。
File->Settings, 搜索Theme, 点开Appearance, 在右边面板的Theme中选择Darcula。
2、注释快捷键。
File->Settings,搜索keymap,点开Keymap,在右边面板上搜索,找到Other->Fix doc comment,双击,选择Add Keyboard Shortcut,按下你的快捷键。Eclipse中是alt + shi...
分类:
移动开发 时间:
2014-07-06 12:01:24
阅读次数:
226
Description: Given two strings, write a method to decide if one is a permutation of the other.We could use the same idea from CTCI 1.1. The only diffe...
分类:
其他好文 时间:
2014-07-05 21:43:01
阅读次数:
231
源自:http://www.myexception.cn/other/1391135.html 最近以裁判的身份参加了公司举办的编程大赛,发现高手云集,对公司内部的程序员能力也有了更深入的了解。我觉得编程能力对程序员而言,虽然很重要,但并不是全部。那么作为一个程序员,到底应该具备什么样的能力呢?这个...
分类:
其他好文 时间:
2014-07-05 21:27:29
阅读次数:
173