mysql_num_rows();返回结果集中行的数目。1 $sql1 = "select *
from movie";2 $result1 = mysql_query($sql1) or die(mysql_error());3 $count =
mysql_num_rows($result1);...
分类:
Web程序 时间:
2014-07-22 23:13:33
阅读次数:
354
Reverse Words in a
String题目链接:http://oj.leetcode.com/problems/reverse-words-in-a-string/ Given an
input string, reverse the string word by word. F...
分类:
其他好文 时间:
2014-07-22 23:13:32
阅读次数:
309
Given a sorted linked list, delete all
duplicates such that each element appear onlyonce.For
example,Given1->1->2, return1->2.Given1->1->2->3->3,
retu...
分类:
其他好文 时间:
2014-07-22 23:12:13
阅读次数:
426
二分查找算法,对数据进行查找并且显示位置。核心思想:将所查找数据与查询数组中间的数进行比较,findValrightIndex) 8 { 9 //
提示找不到,防止无穷递归10 document.write("找不到");11 retur...
分类:
编程语言 时间:
2014-07-22 23:09:35
阅读次数:
304
Given a string s and a dictionary of words
dict, determine if s can be segmented into a space-separated sequence of one or
more dictionary words.For e...
分类:
其他好文 时间:
2014-07-22 23:08:32
阅读次数:
383
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-07-22 23:07:13
阅读次数:
379
bootstrap提供的布局主要有两种,固定布局和流动布局。Bootstrap 固定布局用法 ...
实例:Example of Fixed Layout with Bootstrap version 2.0 from
w3cschool.ccHomeAboutContactw3csch...
分类:
其他好文 时间:
2014-07-22 23:06:55
阅读次数:
812
刚刚说的是获取像素值。如果要进一步改变像素值的话,需要用到IRasterEdit接口的Write方法。Write方法的参数有两个,一个是在栅格图像中的左上角位置(行列值不是坐标值),另一个就是获取像素值时提到的PixelBlock.
执行完Write方法后要对实现IRasterEdit接口的对象进行...
分类:
其他好文 时间:
2014-05-01 16:30:30
阅读次数:
349
路径:/boot/grub/grub.cfg配置文件如下:## DO NOT EDIT
THIS FILE## It is automatically generated by grub-mkconfig using templates# from
/etc/grub.d and settings ...
分类:
其他好文 时间:
2014-05-01 16:29:15
阅读次数:
452
题目来源:http://poj.org/problem?id=3525分析:题意:给定一个凸多边形,求多边形中距离边界最远的点到边界的距离。思路 :
每次将凸多边形每条边往里平移d,判断是否存在核;二分d即可。多边形边上的点(x , y)往里平移d 后的 坐标: s , e 为向量的 起点和终点, ...
分类:
其他好文 时间:
2014-05-01 16:27:16
阅读次数:
335