现在位置: 首页 > ballpoint发表的所有文章
  • 11月
  • 14日
综合 ⁄ 共 16304字 评论关闭
原博客地址:http://blog.csdn.net/developer_jiangqq/article/details/9617781 ====================================================================================================================================   今天来学习一下模仿实现一个网易新闻客户端的主界面。话不多说,直接看效果图:                                项目结构截图如下:             1.1:分析主页界面实现方法:               ①:主界面的效果是,两边分别是左侧新闻服务列别,右侧是个人信息中心,分别是左右侧滑的。中间是各类别的......
阅读全文
  • 01月
  • 10日
综合 ⁄ 共 3839字 评论关闭
单向链表(单链表)是链表的一种,其特点是链表的链接方向是单向的,对链表的访问要通过顺序读取从头部开始;链表是使用指针进行构造的列表;又称为结点列表,因为链表是由一个个结点组装起来的;其中每个结点都有指针成员变量指列表中的下一个结点;   #pragma once //实现单向链表 class Onewayslinklist { public: Onewayslinklist(void); Onewayslinklist(int value); Onewayslinklist(int intarr[], int length); Onewayslinklist(Onewayslinklist* linklist); ~Onewayslinklist(void); public: //单向链......
阅读全文
  • 12月
  • 15日
综合 ⁄ 共 2253字 评论关闭
HDU 1394 Minimum Inversion Number解题报告 一、原题 Minimum Inversion Number Problem Description The inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i < j and ai > aj. For a given sequence of numbers a1, a2, ..., an, if we move the first m >= 0 numbers to the end of the seqence, we will obtain another sequence. There are totally n such sequences as the following: a1, a2, ..., an-1, an (where m = 0 - the initial seqence) a2, ......
阅读全文
  • 05月
  • 18日
综合 ⁄ 共 4001字 评论关闭
最近需要测试一下Openfire服务器的性能,然后就选择了用Tsung这个鼎鼎大名的工具来进行测试,只不过Tsung的安装需要CentOS系统,并且,安装过程也不是那么容易的,所以这里参考了一下别人的博客,现在记录如下。 转载地址:http://blog.csdn.net/flyforqie/article/details/38640069,如转载请注明原文出处。 一、安装 安装环境: [plain] view plaincopy LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch   Distributor ID: CentOS   Description:    CentOS release 6.5 (Final......
阅读全文
  • 04月
  • 23日
综合 ⁄ 共 1582字 评论关闭
code #include <set> #include <map> #include <ctime> #include <queue> #include <cmath> #include <stack> #include <limits> #include <vector> #include <bitset> #include <string> #include <cstdio> #include <cstring> #include <fstream> #include <string.h> #include <iostream> #include <algorithm> #define LL long long #define Vi vector<int> #define Si set<int> #define readf freopen("input......
阅读全文
Local operating system boot fails when external storage is attached - IBM BladeCenter and System x Source RETAIN tip: H195948 Symptom Operating Systems (OSes) which are not Unified Extensible Firmware Interface (UEFI) aware can fail at the point of bootstrapping the OS from local hard disk drives (HDDs). The issue occurs when a Host Bus Adapter (HBA) is installed in the server and attached to external storage. The issue has only been seen with the QLogic and Emulex HBAs, but may be seen w......
阅读全文
  • 03月
  • 30日
综合 ⁄ 共 1890字 评论关闭
Tag:C 版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明http://feizf.blogbus.com/logs/3990457.html 1. 函数指针 一般的函数指针可以这么定义:int(*func)(int,int); 表示一个指向含有两个int参数并且返回值是int形式的任何一个函数指针. 假如存在这样的一个函数:int add2(int x,int y){return x+y;}那么在实际使用指针func时可以这样实现:func=&add2; //指针赋值,或者func=add2; add2与&add2意义相同printf("func(3,4)=%d/n",func(3,4)); 事实上,为了代码的移植考虑,一般使用typedef定义函数指针类......
阅读全文
  • 01月
  • 28日
综合 ⁄ 共 1848字 评论关闭
MySQL使用的是插件式存储引擎。 主要包括存储引擎有:MyISAM,Innodb,NDB Cluster,Maria,Falcon,Memory,Archive,Merge,Federated。 其中最为广泛的是MyISAM 和Innodb两种存储引擎,所以接下来对它们做简单介绍。 MyISAM 存储引擎简介 MyISAM 存储引擎的表存储在数据库中,每一个表都被存放为三个以表名命名的物理文件。 1、(.frm文件)任何存储引擎都不可缺少的存放表结构定义信息的文件 2、(.MYD文件)存放表数据的文件 3、(.MYI文件)存放该表所有索引数据的文件注:有且仅有这样三个文件做为MyISAM 存储类型的表的存......
阅读全文
  • 01月
  • 22日
综合 ⁄ 共 4186字 评论关闭
最近关于比特币的话题很热,一开始我对比特币的概念还是云里雾里的,直至看到云风的这篇bitcoin的基本介绍,里面讲了为什么要大量的计算,bitcoin这个概念才慢慢开始清晰起来。 昨天读到了 Bitcoin 的中文介绍,觉得非常有意思。不过上面这篇文章解释的非常不靠谱,我花了一晚上去Bitcoin的官方网站 仔细研究了一下,总算理解了其原理。感觉非常有启发,尤其是对虚拟货币的流通和发行有许多借鉴意义。今天写这篇 Blog 理一下。 什么是货币呢?货币就是商品(包括服务)交换的媒介。现在我们通行的货币是由有信誉的银行发行的,......
阅读全文
  • 01月
  • 12日
综合 ⁄ 共 2351字 评论关闭
Equidivisions Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 2643   Accepted: 1540 Description An equidivision of an n × n square array of cells is a partition of the n2 cells in the array in exactly n sets, each one with n contiguous cells. Two cells are contiguous when they have a common side. A good equidivision is composed of contiguous regions. The figures show a good and a wrong equidivision for a 5 × 5 square: Note that in the second example the cells ......
阅读全文
  • 12月
  • 24日
综合 ⁄ 共 4591字 评论关闭
第一步:下载jdk和tomcat:到sun官方站点。建议jdk1.4以上,tomcat4.0以上第二步:安装和配置你的jdk和tomcat:执行jdk和tomcat的安装程序,然后设置按照路径进行安装即可。1.安装jdk以后,需要配置一下环境变量,在我的电脑->属性->高级->环境变量->系统变量中添加以下环境变量: JAVA_HOME=C:\Program Files\Java\jdk1.6.0_21classpath=.\;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;(.;一定不能少,因为它代表当前路径) path=%JAVA_HOME%\bin   接着可以写一个简单的java程序来测试JDK是否已安装成功:  ......
阅读全文
  • 12月
  • 10日
综合 ⁄ 共 2180字 评论关闭
  一 Build Result JSP Build Result JSP被设计用来呈现CruiseControl的build loop的结果。页面的左边是关于Cruisecontrol是否正在build你的project,同时也提供先前build的链接。页面的右边是build的结果,包括编译错误,测试结果,从上次build后所修改的文件的列表。 Build Result JSP 如下图:   二 Build Result JSP如何工作 JSP使用自定义的tag来处理大部分过程。这使得code和content分离,开发人员只需要修改code不必关心page的设计,设计人员可以集中精力在page的布局上不必知道任何Java code。所有的字体和颜色都使用css......
阅读全文