当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 定义两个Vector,一个为储存查询所有记录的totalV,另一
 

 

 ·显示code39条形码的php类    »显示摘要«
    摘要:<?/*********************************************************************** written by caocao caocao@eastday.com http://nethermit.yeah.net 显示code39条形码的类 使用方法: $convert=new code39; $str=$conv......
 ·轻量级xml解析器    »显示摘要«
    摘要:tinyxml用来解析个配置文件什么的不错哦。主页www.grinninglizard.com/tinyxml/sourceforge.net/projects/tinyxml/顺便介绍一本书learning standard c++ as a new language(http://www.research.att.com/~bs/new_learning.pdf),bjarne stroust......


最简单的java分页算法。。

定义两个vector,一个为储存查询所有记录的totalv,另一个储存当前页的记录currentpagev;

总的记录数:int totalsize = totalv.getsize(); 【程序编程相关:一些基础:VC编程经验和错误

【推荐阅读:有关文档的实用性要求——来自《文档审核意

每页显示的记录数:int countperpage; 【扩展信息:Visaul C#托盘程序制作心得

总页数:int totalpagenum = totalsize/countperpage;

                 //如果总的记录数与每页记录数的余数大于零,

                 //那么总的页数为他们的整除结果加一

                 if (totalsize%countperpage > 0 ){

                    totalpagenum = totalsize/countperpage + 1;

                 }

当前的页数:pagenum;


...   下一页
 ·a description of the guest account    »显示摘要«
    摘要:a description of the guest account article id : 300489 last review : october 18, 2001 revision : 1.0 this article was previously published under q300489 on this page ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE