打开 Navicat MySQL管理工具连接到数据库选择 test 数据库点击 查询输入对应的 sql命令create table tuser( uname varchar(20) not null primary key, upwd varchar(20) not null...
分类:
数据库 时间:
2014-06-15 21:55:52
阅读次数:
325
python中对文件、文件夹的操作需要涉及到os模块和shutil模块。 创建文件: 1) os.mknod("test.txt") 创建空文件 2) open("test.txt",w) 直接打开一个文件,如果文件不存在则创建文件 创建目录: os.mkdir("file") 创建目录 复制文件....
分类:
编程语言 时间:
2014-06-15 21:53:58
阅读次数:
247
java.lang.VerifyError:Stack map does not match the one at exception handler 385 in method ... at offset 377
我使用的 jar包( 下面是认为跟这个问题有关系的jar包)如下:
antrl-3.3-complete.jar
cglib-2.2.jar
cglib-nodep-2.2.2...
分类:
编程语言 时间:
2014-06-15 16:56:08
阅读次数:
476
示例中有详细注释,直接上代码:
#include
#include
using std::cout;
using std::endl;
using std::string;
int main(void){
string str1="hi,test,hello";
string str2="test";
//搜索子串,返回子串第一个字符的索引
cout << st...
分类:
编程语言 时间:
2014-06-15 16:19:55
阅读次数:
233
经过大牛同事的一句指点立刻明白的代理实现方式,Spring Aop应该也是这么去做的。直接上代码
实现在Car的run方法之前调用star方法,在run方法之后调用stop方法。
Car类
package com.lubby.test;
public class Car {
public void run() {
System.out.println("I am running......
分类:
编程语言 时间:
2014-06-15 08:48:20
阅读次数:
240
cin流可以用于读取标准输入流的一个字符,一行字符包含空格,多行字符等,示例如下:
#include
using std::cout;
using std::endl;
using std::cin;
int main(void){
const int maxlength=100;
char text[maxlength]={0};
char test=0;
//...
分类:
编程语言 时间:
2014-06-14 07:46:55
阅读次数:
321
第一章 Thread导论
为何要用Thread ?
非阻塞I/O
I/O多路技术
轮询(polling)
信号
警告(Alarm)和定时器(Timer)
独立的任务(Task)
并行算法
第二章 Thread的创建与管理
一、什么是Thread ?
Thread是所在主机执行的应用程序任务(task)。
...
分类:
编程语言 时间:
2014-06-14 07:35:10
阅读次数:
367
Android Tasks and Back Stack...
分类:
其他好文 时间:
2014-06-14 06:45:51
阅读次数:
317
http://acm.hdu.edu.cn/game/entry/problem/list.php?chapterid=1§ionid=21.2.5
#include
/*
题意:找闰年。
if((i%4==0 && i%100!=0) || i%400==0)count++;
3
2005 25
1855 12
2004 10000
2108
1904
43236
*/
int ma...
分类:
其他好文 时间:
2014-06-14 06:32:08
阅读次数:
320
===6.3.2使用string对象===
string word="I love China"
*链接字符串*
string description=adjective + " " + word;
_Note_: 不能连接两个字符串字面量,下面的语句是错误的
string test= "I have" + "a dream";
===6.3.3访问字符串中的字符...
分类:
编程语言 时间:
2014-06-13 21:39:55
阅读次数:
367