publicfunctionalist()
{
$this->validateLogin();
$this->createurl();
$article=M(‘article‘);
$page=I(‘get.page‘);
$perpage=20;
$page=(isset($page)&&($page>0))?$page:1;//currentpage
$last=$page-1;
$next=$page+1;
$url="http://".$_SERVER[‘SERVER..
分类:
Web程序 时间:
2015-12-10 17:12:45
阅读次数:
150
#include<stdio.h>intmain(){ intnum=-1,count=0; while(num) { count++; num=num&(num-1);}printf("%d\n",count); system("pause"); return0;}用函数编写#include<stdio.h>intcount_one_bit(num){ intcount=0; while(num) { count++; num=num&(num-1); ..
分类:
其他好文 时间:
2015-12-09 19:50:49
阅读次数:
101
Static静态变量; 不同的对象共享这个变量的存储空间而不是静态变量 每个对象具有可变的存储器空间public class StaticDemo { private int count=0; private static int staticCount=0; public StaticDemo.....
分类:
其他好文 时间:
2015-12-09 19:50:02
阅读次数:
175
前提: windows 系统 实现功能:用 LR 中的system函数执行系统命令 相关功能:在LR中利用C函数建立文件,写文件,读文件。 主要相关函数:sprintf/fopen/fgetc/fread/fclose Action() { int count,total=0,i; char buf...
分类:
其他好文 时间:
2015-12-09 19:44:15
阅读次数:
185
把 combobox里面的项换成checkedbox示例: combobox cbb=new combobox();if (null != ItemList && ItemList.Count > 0){CheckBox cb = new CheckBox();cb.CommandParameter...
分类:
Web程序 时间:
2015-12-09 17:06:37
阅读次数:
142
--触发器学习ALTER trigger 触发器名 on 表1 for insert as begin if (select count(1) from 表1)=0 print '未插入数据' else insert into 表2(字段 )select 对应字段 from ins...
分类:
其他好文 时间:
2015-12-09 16:57:10
阅读次数:
137
在写一个猜图的游戏时,遇到一个很有意思的BUG,具体表现如下:如果时单纯的判断数组里面元素的数量时,它是正常工作的,比如这里array里面的元素数量为3,所以它执行下一句;这里的array1的元素数量为0,所以它执行else语句,也正常;但是这里,-1明明比array的count小,这里count为...
分类:
编程语言 时间:
2015-12-09 07:09:35
阅读次数:
202
参数为年份和月份,输出结果为指定月的天数只需函数strtotime()<?php Function day_count($year,$month){ Echo date("t",strtotime($year."-".$month)); } echo ...
分类:
其他好文 时间:
2015-12-09 00:16:00
阅读次数:
125
Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent ...
分类:
其他好文 时间:
2015-12-08 22:01:31
阅读次数:
160
题目连接https://leetcode.com/problems/number-of-islands/Number of IslandsDescriptionGiven a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number ...
分类:
其他好文 时间:
2015-12-08 10:06:27
阅读次数:
157