#include<stdio.h>
#include<string.h>
#define?ON?1
#define?OFF?0
int?main(void)
{
????int?spoon,?chopstick,?sucker,?cup;
????spoon?=?chopstick?=?sucker?=?cup?=?OFF;
????...
分类:
其他好文 时间:
2014-08-05 23:14:40
阅读次数:
512
配置Session的生命周期model:设置存储会话状态。包括四个状态,分别为:Off(表示禁用会话状态)、Inproc(表示工作进程自身存储会话状态)、StateServer(表示将把会话信息存放在一个单独的ASP.NET状态服务中)和SqlServer(表示将把会话信息存放在SQLServer数...
分类:
Web程序 时间:
2014-08-05 19:05:40
阅读次数:
320
1.先使用phpinfo.php文件打印出信息2.找到Loaded Configuration File 根据他的路径去修改php.ini文件3.打开php.ini文件,搜索 short_open_tag = Off 他默认的就是关闭的 ,将他改为On,然后重启apache就可以了本人亲自尝试过,绝...
分类:
其他好文 时间:
2014-08-05 13:46:09
阅读次数:
251
题目:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read ....
分类:
编程语言 时间:
2014-08-04 04:11:06
阅读次数:
293
首先测试标准输入是否可以进行lseek操作
[root@luozhonghua 03]# cat ex03-lseek-01.c
/*文件ex03-lseek-01.c,
使用lseek函数测试标准输入是否可以进行seek操作*/
#include
#include
#include
#include
int main(void)
{
off_t offse...
分类:
系统相关 时间:
2014-08-03 18:13:05
阅读次数:
308
Oracle 10g及后续版本较以前版本有一新特性即自动调整undo retention时间,大大简便了管理,对于自动扩展(autoextend on)的undo表空间,参数undo_retention设置成为Oracle自动调节undo retention的最低阀值。对于非自动扩展(autoextend off),非guarantee 的undo 表空间,Oracle会根据undo表空间大小和v...
分类:
数据库 时间:
2014-08-02 12:52:53
阅读次数:
350
Before you startAbout this tutorialThe new input/output (NIO) library was introduced with JDK 1.4. Picking up where original I/O leaves off, NIO provi...
分类:
其他好文 时间:
2014-08-02 09:55:53
阅读次数:
322
mmap() 和 munmap() - Unix的系统函数,更贴近底层 void* mmap(void* addr,size_t size,int prot,int flags, int fd, off_t offset) 参数addr可以指定映射的首地址,一般为0 交给内核指定。 size 就是分...
分类:
其他好文 时间:
2014-08-01 19:18:52
阅读次数:
206
WPToolkit中的ToggleSwitch开关控件是比较常用的控件,之前在做的的时候遇到一个问题,默认语言改为中文,手机系统语言也为中文,但是开关状态无法应用本地化的语言库,开关状态总是显示On/Off,而产品要求显示中文的开关 通过Nuget下载下来的WPToolkit包中是包含中文的语言的....
分类:
其他好文 时间:
2014-07-31 23:40:20
阅读次数:
317
linux 关闭防火墙 ============= ##1. 重启后生效 开启: chkconfig iptables on 关闭: chkconfig iptables off ##2. 即时生效,重启后失效 开启: service iptables start 关闭: service iptables stop ##3. 在...
分类:
系统相关 时间:
2014-07-31 21:23:07
阅读次数:
324