自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 资源 (14)
  • 收藏
  • 关注

原创 题目: 一球从100米高度自由落下,每次落地后反跳回原高度的一半;再落下,求它在 第10次落地时,共经过多 少米?第10次反弹多高?

package 一球从100米高度自由落下问题答案;/** * * @author 何虎 * */public class CalculateBal{ public static void main(String[] args) { Ball bl = new Ball(); bl.setHight(100f); //高度100米 for(int i=1;

2014-08-22 17:34:53 17947

原创 有只青蛙掉入十米深的井底,青蛙早晨往上爬三米, 傍晚往下猾两米,问青蛙用几天才能从井里出来?

package 有只青蛙掉入十米深的井底;/** * * @author 何虎 * */public class CalculateToad{ public static void main(String[] args) { int day = 1; int miter = 10; Toad toad = new Toad(); toad.setMi

2014-08-22 17:34:23 10706

原创 有n个人围成一圈,顺序排号。从第一个人开始报数(从1到3报数), 凡报到3的人退出圈子,问最后留下 的是原来第几号的那位。

package 有n个人围成一圈顺序排号从第一个人开始报数;/** * * @author 何虎 * */public class Person{ private int id; private Person prev; private Person next; public Person getPrev() { return prev; } publ

2014-08-22 17:31:57 7118

原创 古典问题: 有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一 对兔子,假如兔子都不死,问每个月的兔子总数为多少?

package 生兔子问题答案;import java.util.ArrayList;import java.util.List;/** * * @author 何虎 * */public class CalculateRabbit{ public static void main(String[] args) { List rabbitList = new Arra

2014-08-22 17:30:49 10261 4

原创 猴子吃桃问题: 猴子第一天摘下若干个桃子,当即吃了一半,还不过瘾,又多吃了一个 第二天早上又将剩 * 下的桃子吃掉一半,又多吃了一个。以后每天早上都吃了前一天剩下 的一半零一个。到第10天早上想再吃

package 猴子吃桃问题猴子第一天摘下若;/** *猴子吃桃问题: * 猴子第一天摘下若干个桃子,当即吃了一半,还不过瘾,又多吃了一个 第二天早上又将剩 * 下的桃子吃掉一半,又多吃了一个。以后每天早上都吃了前一天剩下 * 的一半零一个。到第10天早上想再吃时,见只剩下一个桃子了。求第一天共摘了多少。 * */public class Monky{ private in

2014-08-22 17:29:01 10396

李腾飞OA系统综合资料

李腾飞OA系统综合资料 包括很多的JAVA应用技术。 是很好的OA系统学习资料 。

2011-06-13

oracle 10g教程 pdf

很不错的oracle 10g基础教程,希望对大家的学习有所帮助。

2011-03-23

java基础教程pdf

很不错的JAVA基础教程,希望对大家的学习有所帮助。

2011-03-23

Spring教程 pdf

很不错的Spring教程,希望对大家的学习有所帮助。

2011-03-23

Hibernate 教程 pdf

很不错的Hibernate教程,希望对大家的学习有所帮助

2011-03-23

struts2教程 pdf

一个很不错的Struts2.x教程,希望对大家的学习有所帮助。

2011-03-23

企业后台管理系统界面(E——mail)

企业后台管理系统界面(E——mail)后台管理系统,框架很不错的资源。希望大家看一看。

2009-10-05

进销存管理系统软件-安装

商业进销存管理系统软件,安装版。很好用的软件。 商业进销存管理系统软件,安装版。很好用的软件。

2009-09-30

进销存管理系统功能分析-进销存管理系统功能分析

进销存管理系统功能结构分析,很好的资源,希望大家看一看。

2009-09-30

进销存管理系统-进销存管理系统

进销存管理系统这是一个比较好的资源,想做开发的朋友希望来看看。

2009-09-30

商业进销存管理系统——进销存管理系统

进销存管理系统是一个比较好的系统,希望想学习开发的朋友看一看。

2009-09-30

Easy+Ajax+with+jQuery中文版.pdf

ajax jquery学习好帮手简单易懂很好的资源!

2009-09-02

ajax API 文档

<?php /** * @name 用户注册页面 * @since 2007-05-04 * @author BianJiang * @link liuxingyuyuni.cublog.cn * @history 需要对数据库操作进行封装 * */ //开启会话 session_start(); //基本设置 @$dbHost = "www.xxx.com"; @$dbUser = "root"; @$dbPass = "xxx"; @$dbOne = "xxx"; @$dbTwo = "xxx"; $rootPath = str_replace(''\\'',''/'',dirname(__FILE__)."/"); require_once($rootPath."lib/xajax/xajax.inc.php"); require_once($rootPath."lib/smarty/Smarty.class.php"); $tpl = new Smarty(); $tpl->template_dir = $rootPath.''templates''; $tpl->compile_dir = $rootPath.''templates_c''; $tpl->config_dir = $rootPath.''lib/smarty/configs''; $tpl->cache_dir = $rootPath.''lib/smarty/cache''; $tpl->debugging = false; $tpl->caching = false; $tpl->left_delimiter = ''{#''; $tpl->right_delimiter = ''#}''; $xajax = new xajax(); /** * @name getIP * @param None * @desc get client ip address * @return String * */ function getIP() { if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown")) $ip = getenv("HTTP_CLIENT_IP"); else if (getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown")) $ip = getenv("HTTP_X_FORWARDED_FOR"); else if (getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown")) $ip = getenv("REMOTE_ADDR"); else if (isset($_SERVER[''REMOTE_ADDR'']) && $_SERVER[''REMOTE_ADDR''] && strcasecmp($_SERVER[''REMOTE_ADDR''], "unknown")) $ip = $_SERVER[''REMOTE_ADDR'']; else $ip = "127.0.0.1"; return($ip); } /** * @name isValidUser * @param String $username * @desc XAJAX注册函数:对注册用户名称进行检查 * @return $xajaxResponse->getXML() * */ function isValidUser($username) { $username=iconv("utf-8", "gb2312", $username); global $dbHost, $dbUser, $dbPass, $dbOne; $xajaxResponse = new xajaxResponse(); $xajaxResponse->addAlert($username); $conn = mysql_connect($dbHost, $dbUser, $dbPass); if(!$conn) die("connect db error"); if(!mysql_select_db($dbOne,$conn)) die("cant not select db"); $sql = "select * from xxx where username=''".$username."''"; $rs = mysql_query($sql, $conn); $num = mysql_num_rows($rs); if($num > 0) { $xajaxResponse->addAssign(''layUsername'', ''innerHTML'', "<font color=''red''=><b>对不起!用户名已存在!</b></font>"); $xajaxResponse->addAssign(''username'',"style.background", "#CCCCCC"); $xajaxResponse->addAssign("Submit2","disabled", true); } else if(strlen($username) > 14 || strlen($username) < 4) { $xajaxResponse->addAssign(''layUsername'', ''innerHTML'', "<font color=''red''=><b>用户名长度不符合规定!</b></font>"); $xajaxResponse->addAssign(''username'',"style.background", "#CCCCCC"); $xajaxResponse->addAssign("Submit2","disabled", true); } else { $xajaxResponse->addAssign(''layUsername'', ''innerHTML'', "<font color=''blue''=><b>恭喜!可以使用!</b></font>"); $xajaxResponse->addAssign(''username'',"style.background", "#66FFFF"); $xajaxResponse->addAssign("Submit2","disabled", false); } return $xajaxResponse->getXML(); } /** * @name isValidPass * @param String $pass * @param String $pass2 * @desc XAJAX调用函数:用户密码检查 * @return $xajaxResponse->getXML() * */ function isValidPass($pass, $pass2) { $xajaxResponse = new xajaxResponse(); if((strlen($pass) < 5) || (strlen($pass2 ) < 5))//修改模改,只判断$pass2 {

2009-07-03

struts API文档

下载还是很快的 Abstract base class for comparison tags. ConditionalTagBase Abstract base class for the various conditional evaluation tags. EmptyTag Evalute the nested body content of this tag if the specified value is empty for this request. EqualTag Evaluate the nested body content of this tag if the specified variable and value are equal. ForwardTag Perform a forward or redirect to a page that is looked up in the configuration information associated with our application. GreaterEqualTag Evaluate the nested body content of this tag if the specified variable is greater than or equal to the specified value. GreaterThanTag Evaluate the nested body content of this tag if the specified variable is greater than the specified value. IterateTag Custom tag that iterates the elements of a collection, which can be either an attribute or the property of an attribute. IterateTei Implementation of TagExtraInfo for the iterate tag, identifying the scripting object(s) to be made visible. LessEqualTag Evaluate the nested body content of this tag if the specified variable is less than or equal to the specified value. LessThanTag Evaluate the nested body content of this tag if the specified variable is less than the specified value. MatchTag Evalute the nested body content of this tag if the specified value is a substring of the specified variable. MessagesNotPresentTag Evalute the nested body content of this tag if the specified value is not present for this request. MessagesPresentTag Evalute to true if an ActionMessages class or a class that can be converted to an ActionMessages class is in request scope under the specified key and there is at least one message in the class or for the property specified. NotEmptyTag Evalute the nested body content of this tag if the specified value is not empty for this request. NotEqualTag Evaluate the nested body content of this tag if the specified variable and value are not equal. NotMatchTag Evalute the nested body content of this tag if the specified value is not a substring of the specified variable. NotPresentTag Evalute the nested body content of this tag if the specified value is not present for this request. PresentTag Evalute the nested body content of this tag if the specified value is present for this request. RedirectTag Generate a URL-encoded redirect to the specified URI.

2009-07-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除