//在3t2目录下
//adder.h
/*
qt简单加法计算器
*/
#ifndef ADDER_H
#define ADDER_H
#include
#include
#include
#include
class Adder:public QDialog{
Q_OBJECT//让自定义的槽函数生效
private:
QLineEdi...
分类:
其他好文 时间:
2014-06-11 07:05:16
阅读次数:
259
//qt 5.2.1
//1t目录下
//1t.cpp
/*
第一个qt程序
*/
#include
#include
#include
#include
int main(int argc,char** argv){
/*构造一个对象*/
QApplication app(argc,argv);
QTextCodec* coder=QTex...
分类:
其他好文 时间:
2014-06-11 00:38:57
阅读次数:
314
Find the contiguous subarray within an array
(containing at least one number) which has the largest sum.For example, given
the array[?2,1,?3,4,?1,2,1,...
分类:
其他好文 时间:
2014-06-10 09:14:50
阅读次数:
211
戳我去解题Given a collection of numbers, return all
possible permutations.For example,[1,2,3]have the following
permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1...
分类:
其他好文 时间:
2014-06-10 08:42:11
阅读次数:
184
psutil是python的一个用于获取cpu信息的模块,非常好使,以下附上官方的一些example:
CPU-> Examples>>> import psutil>>>
psutil.cpu_times()scputimes(user=3961.46, nice=169.729, syst...
分类:
其他好文 时间:
2014-06-09 19:36:32
阅读次数:
418
上一节中谈到的那个问题:传递的变量内容如果是纯英文,报表报错。经笔者反复测试,找到了解决办法:代码中第5行替换为以下params<<"my_var"<<"\"xyz\"";在内容前后用\“把内容括起来,在把报表设计器中Code页的语言设置为非PascalScript就好了。
分类:
其他好文 时间:
2014-06-09 19:15:15
阅读次数:
294
原题地址:https://oj.leetcode.com/problems/simplify-path/题意:Given
an absolute path for a file (Unix-style), simplify it.For example,path="/home/",
=>"/home...
分类:
编程语言 时间:
2014-06-09 19:13:54
阅读次数:
181
多学学,以后可以方便的自己写代码了。对于各种WEB框架,这也是打一个基础的时候。相信学入门了,对PHP的,JAVA的WEB框架,都是能理解更深入的。def
index(): """ example action using the internationalization operato...
分类:
Web程序 时间:
2014-06-09 18:06:43
阅读次数:
242
原题地址:https://oj.leetcode.com/problems/first-missing-positive/题意:Given
an unsorted integer array, find the first missing positive integer.For
example,G...
分类:
编程语言 时间:
2014-06-09 17:44:43
阅读次数:
980
path=C:\Qt\Qt5.3.0\5.3\mingw482_32\bin;C:\Qt\Qt5.3.0\Tools\mingw482_32\bin;%path%增加:QT_PLUGIN_PATH
C:\Qt\qwt-6.1.0\plugins QTDIR C:\Qt\Qt5.3....
分类:
其他好文 时间:
2014-06-09 16:44:47
阅读次数:
346