??
1、开发工具
服务器 apache 下载地址:http://www.apache.org
http://httpd.apache.org/download.cgi
数据库 mysql 下载地址:http://www.mysql.com
编译工具 php5 下载地址:http://www.php.net
2、配置 Apache
将httpd-2...
分类:
其他好文 时间:
2015-08-09 14:13:41
阅读次数:
214
对应若水老师的第十课
一,linearlayout
线性布局,布局文件中设置多个linearlayout来达到整体线性布局的风格.
android:gravity="right"对齐方式,居右对齐,gravity是重心的意思
常用参数:center(居中),bottom(下),top(上),right(右),left(左)
二,android:layout_weight
给控件分配...
分类:
移动开发 时间:
2015-08-09 14:13:36
阅读次数:
164
题目链接:http://poj.org/problem?id=1088
题面:
滑雪
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 83760
Accepted: 31349
Description
Michael喜欢滑雪这并不奇怪, ...
分类:
其他好文 时间:
2015-08-09 14:13:58
阅读次数:
113
昨天实现了一个Android版本的小清新动画,可以当成进度条来用,这里把IOS的补上!...
分类:
移动开发 时间:
2015-08-09 14:12:58
阅读次数:
264
题意:输入两个非负整数a、b和正整数n(a,b>=0&&a,b=1&&n
解题思路:设F(i)=f(i) mod n。不难发现当(F(i),F(i+1))重复出现时,整个序列就开始重复。所以我们需要找到对于不同的n重复周期,因为余数有n中,所以最多n^2项就会出现重复(其实我们也可以通过打表观察,在n...
分类:
其他好文 时间:
2015-08-09 14:14:44
阅读次数:
122
//n个奶牛,
//A B 表示A认为B出名,而且其有传递性
//如A认为B出名,B认为C出名,那么A认为C出名
//问有多少头奶牛所有的奶牛都认为其出名
//先对这个图缩点,记录每一个缩点的个数,然后找出度为0有且只有一个点
//如果是,那么那个点缩了几个点就是答案
#include
#include
#include
#include<vec...
分类:
其他好文 时间:
2015-08-09 14:13:05
阅读次数:
118
Description
Railway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…
The Lunar New Year was approaching, but unluckily the Little Ca...
分类:
其他好文 时间:
2015-08-09 14:14:33
阅读次数:
152
//n块蛋糕,大小从1到n
//将其平均分为m块
//比赛的时候用贪心策略从大往小凑成这个蛋糕水过
//结果发现是spj出问题,这样的贪心策略有问题
//因为前面的蛋糕凑好可能会影响后面使得后面的凑不出来
//数据:
/*
17
23 6
27 7
28 7
31 8
32 8
35 9
36 9
39 10
40 10
45 9
53 9
59 10
71 9
99 9
99 10
100 10...
分类:
其他好文 时间:
2015-08-09 14:13:12
阅读次数:
138
c++中友元类可以访问类的所有域,简直是编程世界的老王。...
分类:
编程语言 时间:
2015-08-09 14:13:23
阅读次数:
156
题目描述
输入n个整数,找出其中最小的K个数。例如输入4,5,1,6,2,7,3,8这8个数字,则最小的4个数字是1,2,3,4,。
代码
public ArrayList GetLeastNumbers_Solution(int [] input, int k) {
if (input.length==0||k>input.length) {
...
分类:
编程语言 时间:
2015-08-09 14:13:17
阅读次数:
183
hibernate 批量处理操作...
分类:
Web程序 时间:
2015-08-09 14:10:44
阅读次数:
152
iOS–绘图介绍
绘制图像--一. 子类化UIView,在drawRect:方法画图,二. 直接UIGraphicsBeginImageContextWithOptions绘图,三. layer.delegate代理绘制图片
绘图CGContext堆栈介绍...
分类:
移动开发 时间:
2015-08-09 14:11:33
阅读次数:
153
「情况1」同一文件内容冲突
cd ~/user2/samplegit pullecho "Hello,User2" >> user.txtgit add .git commit -m "user2 conflict commit"git push origin master
cd ~/user1/sampleecho "Hello,User1" >> user.txtgit p...
分类:
其他好文 时间:
2015-08-09 14:12:01
阅读次数:
162
题目链接:点击打开链接
题目描述:
给出三个数x1,a,b,然后根据递推公式xi=(axi-1+b)mod10001,计算出了一个长度为2T的数列。然后把T和x1,x3,x5··· x2T-1写到输入文件,x2,x4,x4,···x2T作为输出文件
输入保证T
解题思路:如果知道a,我们就可以通过x1,x3,计算出b。有了x1,a,b我们就可以在O(T)的时间内求的整个序列。如果在...
分类:
编程语言 时间:
2015-08-09 14:10:12
阅读次数:
127
代码:
#include
#include
using namespace std;
char s[105];
int a[100];
char num[12][100];
int main()
{
strcpy(num[0],"ling");
strcpy(num[1],"yi");
strcpy(num[2],"er");
strcpy(num[3],"s...
分类:
其他好文 时间:
2015-08-09 14:10:01
阅读次数:
95
while...do...done
until...do...done
for...do...done...
分类:
系统相关 时间:
2015-08-09 14:11:47
阅读次数:
150
Windows 10刚正式发布,按耐不住就想在平板上安装新的系统。直接升级,无奈遇到了page fault in nonpaged area的错误。全新安装可以成功,但是少了驱动很多功能用不了。笔者用下面的方法将七彩虹i108W平板成功安装Windows 10,并完美安装各种需要的驱动,触摸屏、重力感应等都可以用。特此分享,希望能帮助到需要的网友。该方案也适合其他Windows平板,解决的思路是一样的。...