链接:http://poj.org/problem?id=3259
Description
While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path t...
分类:
其他好文 时间:
2014-06-05 05:26:33
阅读次数:
240
----------------------------------------------------hello world-------------------------------------------
linux 创建如下文件 vim hello
#! /bin/bash //告诉Shell 使用哪个Shell 程序
#Display a line //#表示...
分类:
其他好文 时间:
2014-06-05 02:41:41
阅读次数:
393
MySQL InnoDB事务的隔离级别有四级,默认是“可重复读”(REPEATABLE READ)。
未提交读(READ UNCOMMITTED)。另一个事务修改了数据,但尚未提交,而本事务中的SELECT会读到这些未被提交的数据(脏读)。
提交读(READ COMMITTED)。本事务读取到的是最新的数据(其他事务提交后的)。问题是,在同一个事务里,前后两次相同的SELECT会读到不同的...
分类:
数据库 时间:
2014-06-05 00:12:14
阅读次数:
449
本文主要讲述基本的控制语句,if ,for ,while.但是里面很有可能有一些基础东西你没有注意到的!
在文章中用if for,while来实现了经典的猜数字,以及输出完美数(什么?完美数不知道?!开玩笑吧!)。
浅显易懂的例子和程序,最适合新手不过了。...
分类:
编程语言 时间:
2014-06-04 23:47:58
阅读次数:
442
最近遇到一个问题.就是
我在io线程里不断的把一个函数调用放到队列里
然后ruby线程就不断的从这个队列里取出函数之争并执行.
典型的 消费者模式.
我以前以为是这样...
这是work线程
pthread_mutex_lock(&mutex2)
while(( invoke = get_invoke() ) != NULL){
do_invoke(invo...
分类:
其他好文 时间:
2014-06-04 22:35:56
阅读次数:
408
x86:
ldd + 应用名
arm:
arm-linux-readelf -d 应用名...
分类:
系统相关 时间:
2014-06-04 21:03:43
阅读次数:
327
Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤ 100,0...
分类:
其他好文 时间:
2014-06-03 05:30:23
阅读次数:
394
地址重写:
主要是为了网站的安全,
例如我们平时的地址请求 :/read.do?id=1,但是地址重写后就变成:/egread-1.html...
分类:
其他好文 时间:
2014-06-03 04:19:55
阅读次数:
279
1.判断一个数是都是回文数
#include
int main(void)
{
int a[100] = {0};
int n;
printf("input n:");
scanf("%d", &n);
int i, k, j;
k = 0;
j = 0;
while(n != 0)
{
a[k++] = n % 10;
n = n / 10;
j+...
分类:
编程语言 时间:
2014-06-03 03:26:18
阅读次数:
255
windows下常用快捷键:显示桌面: win徽标+D打开资源管理器: win徽标+E打开任务管理器:
Ctrl+Alt+delete任务切换: Alt+Tab多窗口应用程序的窗口切换: Ctrl+Tab/F2关闭应用程序: ...