使用qss 可将功能与界面的设计分离开,方便UI设计,也可以制作更多更美的界面。在代码中调用qss文件:[cpp]view plaincopyQFilestyleSheet(":/qss/myStyle.qss");if(!styleSheet.open(QIODevice::ReadOnly)){...
                            
                            
                                分类:
其他好文   时间:
2015-06-04 21:06:42   
                                阅读次数:
236
                             
                         
                    
                        
                            
                            
                                常用命令:1.ag++ main.cc //在工程目录下产生编译后的exe2.ag++ main.cc --weave_only //产生.acc 纯c++文件3.ag++ main.cc --gen_config -v 9// config文件,与运行环境有关4.ag++ --help //帮助信...
                            
                            
                                分类:
编程语言   时间:
2015-06-04 21:05:21   
                                阅读次数:
201
                             
                         
                    
                        
                            
                            
                                本篇来源于官方文档,但不仅仅是翻译,其中不乏网上搜索的资料与自己的理解。如有错误,请予指正。什么是Realm 首先说一下什么是Realm,可以把它理解成“域”,也可以理解成“组”,因为它类似 类Unix系统 中组的概念。 Realm域提供了一种用户密码与web应用的映射关系。 因为tomcat...
                            
                            
                                分类:
其他好文   时间:
2015-06-04 21:03:43   
                                阅读次数:
328
                             
                         
                    
                        
                            
                            
                                运用if语句完成对年、月、日的判断。 Console.WriteLine("其输入年份:"); int a = int.Parse(Console.ReadLine()); Console.WriteLine("请输入月份:"); ...
                            
                            
                                分类:
其他好文   时间:
2015-06-04 21:05:03   
                                阅读次数:
122
                             
                         
                    
                        
                            
                            
                                课程:Java程序设计班级:1351姓名:王朝宪学号:20135114成绩:指导教师:娄家鹏实验日期:2015.6.1实验密级:预习程度:实验时间:3:20~5:00仪器组次:必修/选修:必修实验序号:实验三实验名称:敏捷开发与XP实践实验内容:1. XP基础2. XP核心实践3. 相关工具实验仪器...
                            
                            
                                分类:
其他好文   时间:
2015-06-04 21:03:52   
                                阅读次数:
170
                             
                         
                    
                        
                            
                            
                                文章转自:http://blog.sina.com.cn/s/blog_85c1dc100101bxgg.html今天看JS学习资料,看到一个toString()方法,在JS中,定义的所有对象都具有toString()方法。Number类型的toString()方法比较特殊,有默认模式和基模式两种。...
                            
                            
                                分类:
其他好文   时间:
2015-06-04 21:04:32   
                                阅读次数:
140
                             
                         
                    
                        
                            
                            
                                Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up:Can you solve it without using extra space?解...
                            
                            
                                分类:
编程语言   时间:
2015-06-04 21:02:52   
                                阅读次数:
151
                             
                         
                    
                        
                            
                            
                                //设置控件隐藏 tbButton.setVisible(false); InputMap inputMap = this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW); inputMap.put(KeyStroke.getK...
                            
                            
                         
                    
                        
                            
                            
                                http://blog.sina.com.cn/s/blog_71715bf801017nyw.html方法一:-(NSString *)notRounding:(float)price afterPoint:(int)position{NSDecimalNumberHandler* roundin...
                            
                            
                                分类:
移动开发   时间:
2015-06-04 21:02:14   
                                阅读次数:
178
                             
                         
                    
                        
                            
                            
                                题意:思路:#include#include#include#include#include#include#include#include#include#includeusing namespace std;map a;const int INF=1000000000;int main(){ ....
                            
                            
                                分类:
其他好文   时间:
2015-06-04 21:02:49   
                                阅读次数:
110
                             
                         
                    
                        
                            
                            
                                题目:Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the o...
                            
                            
                                分类:
其他好文   时间:
2015-06-04 21:03:00   
                                阅读次数:
130
                             
                         
                    
                        
                            
                            
                                2.16 DetailsYour app declares support for audio in the UIBackgroundModes key in your Info.plist, but we were unable to play any audible content when t...
                            
                            
                                分类:
移动开发   时间:
2015-06-04 21:01:27   
                                阅读次数:
208
                             
                         
                    
                        
                            
                            
                                一. 题目 给定一个十进制的正整数,写下从1开始,到N的所有整数,然后数一下其中出现“1”的个数。 要求: 写一个函数 f(N) ,返回1 到 N 之间出现的 “1”的个数。例如 f(12) = 5。 在32位整数范围内,满足条件的“f(N) =N”的最大的N是多少。二. 设计思想 ...
                            
                            
                                分类:
其他好文   时间:
2015-06-04 21:04:18   
                                阅读次数:
158
                             
                         
                    
                        
                            
                            
                                题意:思路:#include#include#include#include#include#include#includeusing namespace std;const int MAXN=100000+5;int p[MAXN],u[MAXN],v[MAXN],vis[MAXN],w[MAXN...
                            
                            
                                分类:
其他好文   时间:
2015-06-04 21:02:39   
                                阅读次数:
149
                             
                         
                    
                        
                            
                            
                                #Gradient Descent 梯度下降法#x为数据矩阵(mxn m:样本数 n:特征数 );y观测值(mx1);error相邻两次迭代的最大误差;#step为设定的固定步长;maxiter最大迭代次数,alpha,beta为回溯下降法的参数# 在直接设置固定的step时,不宜设置的过大,当步长...
                            
                            
                                分类:
其他好文   时间:
2015-06-04 21:01:28   
                                阅读次数:
229
                             
                         
                    
                        
                            
                            
                                1 using System; 2 using System.Collections.Generic; 3 using System.Data; 4 using System.Data.SqlClient; 5 using System.Text; 6 using System.Web...
                            
                            
                                分类:
移动开发   时间:
2015-06-04 21:03:24   
                                阅读次数:
223
                             
                         
                    
                        
                            
                            
                                数组数组故名思议就是一组数据的集合。int a[10];//可以存储10个整数char c[8];//可以存储8个字符‘一般格式:数组类型 数组名[元素个数];数组元素的访问:下标,a[2],a[0],a[4];//下标是从0开始的下面是示例1 #include 2 3 4 5 //数组作为函...
                            
                            
                                分类:
编程语言   时间:
2015-06-04 21:03:03   
                                阅读次数:
207