不能再简化了#include#include#includeint
meng_read_proc(char*page,char**start,off_t offset,int count,int*eof,void*data){
char*s="Hello. This is meng p...
分类:
系统相关 时间:
2014-05-26 15:52:49
阅读次数:
463
当textbox为多行时,获取它的行数:int count =
this.txtMsgInfo.Lines.GetUpperBound(0);
分类:
其他好文 时间:
2014-05-26 14:50:35
阅读次数:
292
http://www.iwangzheng.com/[root@a02]$show
dbs;changhong_tv_cms 0.078GB[root@a02]$ mongodump -d changhong_tv_cms
-o/temp/db_mongo.20140521.mongo/worksp...
分类:
数据库 时间:
2014-05-26 10:30:39
阅读次数:
407
1 //插入排序(一维数组) 2 function insert_sort($arr){ 3
$count = count($arr); 4 for($i=1; $i $tmp){ 8 $arr[$j+1] = $arr[$j]; 9 ...
分类:
Web程序 时间:
2014-05-26 07:52:13
阅读次数:
538
什么是闭包
通俗地讲,JavaScript中每个的函数都是一个闭包,但通常意义上嵌套的函数更能够体现出闭包的特性,请看下面这个例子:var generateClosure
= function(){ var count = 0; var get = function(){ ...
分类:
编程语言 时间:
2014-05-26 07:29:26
阅读次数:
236
假定每个单词用空格隔开。
例子:
输入:how are you!
输出:3
两种方法:
一:
#include
#include
#define SIZE 20
int main()
{
char str[SIZE]={'\0'};
int count=0;
printf("please input the string\n");
gets(str);
put...
分类:
编程语言 时间:
2014-05-26 03:44:36
阅读次数:
284
1.链栈结构
typedef struct StackNode
{
SElemType data;
struct StackNode *next;
}StackNode,*LinkStackPtr;
typedef struct
{
LinkStackPtr top;
int count;
}LinkSta...
分类:
编程语言 时间:
2014-05-24 23:35:39
阅读次数:
429
线段树的区域更新,然后单点查询。
x1 x2 c:区域更新x1-x2为c。
全部染色之后,从0-8000依次查询每个点的颜色。然后存贮每一种颜色有几块。
#include
#include
#include
#include
#include
using namespace std;
#define lmin 0
#define rmax 8000
#define lson l,(l+r)/...
分类:
其他好文 时间:
2014-05-24 19:10:12
阅读次数:
221
timei;placehubei kindergarten
school;Jobjob=newJob();intmaney=0;Stringgains; int Girls_Count=0;
for(i=8:30;i<=18:30;i++) {if((i-8:30)%60==0) { maney+=...
分类:
其他好文 时间:
2014-05-23 04:29:38
阅读次数:
230
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
public class TraditionalTimerTest {
static int count;
public static void main(String[] args) {
class MyTimerTask exte...
分类:
其他好文 时间:
2014-05-23 01:45:11
阅读次数:
226