这一篇我们来看看那如何给图片添加水印,其实是把原图片和水印图片合并在一起。先看文件check_image_addwatermark.php代码 Here is
your pic! Your image...
分类:
Web程序 时间:
2014-05-27 01:09:05
阅读次数:
338
php中制作缩略图的方法也很简单,是用imagecopyresampled方法根据源图制作一个小一点的图片,来看代码check_image_addthumbs.php
Here is your pic! ...
分类:
Web程序 时间:
2014-05-27 01:03:23
阅读次数:
407
定义一个类来表示2D平面几何中的点。这个类实例化的对象拥有一个名为r()的方法,用来计算该点到原点的距离function Point(x,y){ this.x
= x; this.y = y;}var p = new Point(1,1);Point.prototype.r = func...
分类:
编程语言 时间:
2014-05-24 07:36:10
阅读次数:
235
题目:Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical...
分类:
其他好文 时间:
2014-05-23 12:40:21
阅读次数:
352
前面的一篇文章中简单的描述了一下内存映射的内容,http://blog.csdn.net/codectq/article/details/25658813,这篇文章作为用户把内存规划好之后,在用户空间使用IOCTL对设备进行控制时的常用函数的代码摘录。后续我会把这部分完善起来。
#ifdefCONFIG_MMU
externunsigned long __must_check __copy_f...
分类:
系统相关 时间:
2014-05-23 07:32:35
阅读次数:
424
指针悬空
指针悬空在我们使用指针的时候很容易被忽视,主要的表现是:指针所指向的内存
释放,指针并没有置为NULL,致使一个不可控制的指针。
#include
#include
int *pointer;
void func()
{
int n=8;
pointer=&n;
printf("pointer point data is %d\n",...
分类:
编程语言 时间:
2014-05-22 09:03:09
阅读次数:
371
表单验证
function check_1(param){//不为空
if(param==""||param==null){return false;}else{return true;}
}
function check_2(param){//长度限制,字母是10个,汉字也是10个
if(param.length>10){return false;}else...
分类:
Web程序 时间:
2014-05-20 17:15:45
阅读次数:
414
实现Label与DataGridView对齐有两种方法,差别不大:
定义:
Label名称:lblName
DataGridView名称:dgvData
第一种:
lblName.Location = new Point(dgvData.Location.X + dgvData.Width - lblName.Width, lblName.Location.Y);
第二种:
lb...
戳我去解题Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identic...
分类:
其他好文 时间:
2014-05-20 10:09:37
阅读次数:
201
class Point{ public double x; public double y;}
对于可变的类来说,应该用包含私有域和公有设值方法的类来代替:class Point{ private double x; private double y;
Point(d...
分类:
其他好文 时间:
2014-05-19 12:37:01
阅读次数:
224