柔城

SOSOFT articles

2013年12月9日

一个不错的php验证码的类

摘要: 类的代码: 1 width = $width;14 $this->height = $height;15 $this->codeNum = $codeNum;16 }17 18 function showImg()19 {20 //创建图片21 $this->createImg();22 //设置干扰元素23 $this->setDisturb();24 //设置验证码25 $this->setCaptcha();26 //输出... 阅读全文

posted @ 2013-12-09 23:57 柔城 阅读(468) 评论(2) 推荐(0) 编辑

新学C++的for,switch和随机数

摘要: 通过一个小程序学习: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 ////////////////////////////////////////////////////////////////////////// 7 //a b 随机数 8 9 ////////////////////////////////////////////////////////////////////////// 10 //随机 + - * / 11 char randFun() 12 { 13 int n... 阅读全文

posted @ 2013-12-09 11:57 柔城 阅读(906) 评论(2) 推荐(0) 编辑

导航