//mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include #include namespace Ui { class MainWindow; } class QLineEdit; class QDialog; class Ma... ...
分类:
其他好文 时间:
2017-05-29 18:22:17
阅读次数:
244
一、在字符串中取字符 CString str="12 34 56 78"; str.Left(1); str.Left(2); str.Right(1); str.Righr(3); str.Mid(4,2); 二、在字符串中查找特定字符 CString str="123@abc"; int pos ...
分类:
其他好文 时间:
2017-05-29 17:18:52
阅读次数:
177
//poj 2955 //sep9 #include <iostream> using namespace std; char s[128]; int dp[128][128]; int n; int rec(int l,int r) { if(dp[l][r]!=-1) return dp[l][ ...
分类:
其他好文 时间:
2017-05-29 11:55:31
阅读次数:
116
random 我们经常看到网站的随机验证码,这些都是由随机数生成的,因此我们需要了解一下随机数的模块。如何生成随机数。 random 生成随机数 random.random() 生成0-1之间的小数 >>> import random >>> random.random() 0.7386445925 ...
分类:
其他好文 时间:
2017-05-29 09:49:48
阅读次数:
105
1 //从键盘接收两个文件夹路径,把其中一个文件夹中(包含内容)拷贝到另一个文件夹中 2 @Test 3 public void t6(){ 4 //1) 接受两个文件夹路径 5 //1.创建一个 字符缓冲流 6 7 BufferedReader br = null; 8 ... ...
分类:
其他好文 时间:
2017-05-28 11:01:43
阅读次数:
134
一 概述 1.整合的目的 将Mapper映射器的创建任务交给Spring容器。 二 具体实现 1.创建sqlSessionFactory: 2.创建Mapper: ⑴分散创建(逐个为Dao创建Mapper) ⑵集中创建(为指定包下的所有Dao创建Mapper) ①条件: 条件一:如果映射文件采用扫描 ...
分类:
编程语言 时间:
2017-05-27 22:27:59
阅读次数:
250
传送门 Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 14435 Accepted: 3996 Case Time Limit: 1000MS Special Judge 传送门 Description Bill is deve ...
分类:
其他好文 时间:
2017-05-27 20:00:54
阅读次数:
214
注册表模式可似把他想像成一个全局变量,所有的模块都从这个全局变量里存取数据,或者也可以想象成某个酒吧的许愿墙或留言版,上面的内容大家都可以看到,也可以改写。这里主要按作用域介绍三种类别的注册表类(请求级别、会话级别、应用程序级别)。 ...
分类:
Web程序 时间:
2017-05-26 00:51:22
阅读次数:
188
os模块 os模块:与操作系统相关的模块 注意事项: ...
分类:
其他好文 时间:
2017-05-25 13:28:33
阅读次数:
151
>>> import datetime>>> Today=datetime.date.today()>>> Todaydatetime.date(2017, 5, 24)>>> Today-datetime.date(Today.year,1,1)+datetime.timedelta(days=1 ...
分类:
编程语言 时间:
2017-05-24 14:39:43
阅读次数:
223