方法一:主要在于是否开启gd库 查看办法 找到php.ini文件 搜索extension=php_gd2.dll这段代码 然后把前面的;符号去掉即可。方法二:关键一点是获取验证码的图片与全局变量SITE_URL相关,也就是网站的目录,所以只要修改cache/configs/system.php文件中...
分类:
Web程序 时间:
2014-06-28 20:57:06
阅读次数:
259
classList属性究竟是干什么的,我们先撇下classList不管。我们考虑这么一个问题,那就是我们如何将拥有多个类名的元素中的其中一个类名删除呢?梦龙较劲脑汁儿终于想到一个实现的方法。将拥有类名li、meng和long,三个类名中的类名meng删除。代码如下 HTML代码view sourc....
分类:
Web程序 时间:
2014-06-28 20:41:37
阅读次数:
317
Interlockedsimplearithmetic operations are not atomic.Interlocked类提供了一个专门的机制用于完成这些特定的操作。这个类提供了Increment、Decrement、Add静态方法用于对int或long型变量的递增、递减或相加操作Inte...
分类:
其他好文 时间:
2014-06-21 12:06:35
阅读次数:
320
What?在计算中涉及不同数值类型的computation,这时候,C++会按照以下顺序进行转换order:long double>double>float>unsigned long>long>unsigned int>integ. (1) 1/2=0(当1和2都是int时),结果也肯定是int;...
分类:
编程语言 时间:
2014-06-21 10:09:58
阅读次数:
240
#include#include#include#include#includeusing namespace std;typedef long long ll;const int maxn = 505;const ll one = 1;const ll inf = one l[j-1][x]) l...
分类:
其他好文 时间:
2014-06-21 08:55:01
阅读次数:
207
游荡知乎这么久,甚是仰慕V神。遂开始造轮子之路,由于新手实力较菜。顾从简单的大整数的入门。功能实现分析:1. 能用字符串, 长整型(long long or _int64)构造出此BigInteger.2. 具有正负数之分(整这个整了好一会)3. 实现基本运算 (c...
分类:
其他好文 时间:
2014-06-21 07:04:09
阅读次数:
213
判断如下代码的执行结果: public class Spock{ public static void main(String[] args){ Long tail = 2000L; Long distance = 1999L; Long story = 1000L; if( (tail>dista...
分类:
其他好文 时间:
2014-06-20 19:11:31
阅读次数:
172
代码如下:
#define OTL_BIGINT long long
#define OTL_STR_TO_BIGINT(str,n) { n=atoll(str); }
#define OTL_BIGINT_TO_STR(n,str) { sprintf(str,"%lld", n); }
#include "otlv4.h"// include the...
分类:
数据库 时间:
2014-06-18 08:08:31
阅读次数:
546
水题,一个小模拟,规律也好找
f3 = f1 * 2 + f2;
#include
#include
#include
#include
#include
const int INF = 1e8;
const int N = 100;
#define ll long long
using namespace std;
int a[251][N];
int b[N] = {0};
in...
分类:
其他好文 时间:
2014-06-18 07:28:29
阅读次数:
190
一.对移位操作的基本概述:
1、什么样的数据类型可以直接移位
char、short、int、long、unsigned char、unsigned short、unsigned int、unsigned long都可以进行移位操作,而double、float、bool、long double则不可以进行移位操作。
2、有符号数据类型的移位操作
对于char、short、int、lon...
分类:
其他好文 时间:
2014-06-18 06:59:15
阅读次数:
260