- 博客(5)
- 资源 (1)
- 问答 (2)
- 收藏
- 关注
C/C++ 随机函数
#include "stdio.h" #include <stdlib.h> #include "windows.h" #include <conio.h> #define RAND_MAX 0x7fffvoid main(){ int m=60,n=10,ans=0; srand((unsigned)GetCurrentTime()); //加了这个才正...
2007-05-16 16:56:00 94
延时函数delay() sleep() Sleep()
#include <dos.h>sleep() 秒#include "Windows.h"#include "Winbase.h"Sleep()毫秒CB没有delay()
2007-05-09 18:48:00 2546
spring 防重复提交表单
收集于网络 首先,需要将继承了SimpleFormController之类的sessionForm设为true。这样,在显示一个新表单时,Spring会将command存放在session中,而在提交表单时,Spring会从session中取出此command,随后立即从session中删除存放command的attribute。如果发现在session中没有command,Spring将...
2007-05-08 15:44:00 171
build-blank.xml
第一个项目都要写 build.xml 一些基本的东西先写好<?xml version="1.0" encoding="UTF-8"?><project name="jsp-svn" default="init"> <property file="build.properties" /> <prope
2007-05-05 14:32:00 80
运行 junit test 的单个测试
开发时大多数就是只想运行新增加的测试虽然可以写个main方法 public static void main(String[] args) { junit.framework.Test t = new ExampleTest("testMethod"); TestRunner.run(t); }但这样很不方便, 每想测试一个方法都要改.Eclipse 这个方便...
2007-05-05 13:04:00 895
lighttpd url 映射
2008-07-04
怎么只能用浏览器才有访问页面?
2008-06-25
TA创建的收藏夹 TA关注的收藏夹
TA关注的人