题目链接:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5122
ZOJ Problem Set - 3740
Water Level
Time Limit: 2 Seconds Memory Limit: 65536 KB
Hangzhou is a beauti...
分类:
其他好文 时间:
2014-05-10 10:12:56
阅读次数:
432
关于or,and的使用,查资料得知:and相当于then,or相当于else
下面通过举例来理解这两个关键字的使用:
比如:【1】
$isRight or $a=1000;
他与下面这段代码是等价的:
if(isRight==true)
{
}
else
{
$a=1000;
}
【2】
$update and $db_factory=1;
等价于:
if($update=...
分类:
Web程序 时间:
2014-05-10 09:41:00
阅读次数:
452
ISO C标准I/O库使用流的概念读写文件。流是对数据传输的抽象,可以把流理解为从起点到终点间的字节序列。
标准I/O库通过维护进程空间内的缓冲区,减少read/write系统调用次数来提高I/O效率。之前介绍的Unbuffered I/O和文件描述符fd打交道,标准I/O则使用FILE指针。
typedef struct{
short level;/*缓冲区满程度*/
uns...
分类:
其他好文 时间:
2014-05-10 09:37:37
阅读次数:
388
配置通过数据库认证用户登录打开webapp\WEB-INF目录下的deployerConfigContext.xml,替换 为
com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/db_name root 使用j...
分类:
数据库 时间:
2014-05-09 11:31:43
阅读次数:
477
C标准库了提供了 atoi, atof, atol, atoll(C++11标准)
函数将字符串转换成int,double, long, long long 型。 char str[] = "15.455"; double db; int i;
db = atof(str); /...
分类:
其他好文 时间:
2014-05-08 19:45:22
阅读次数:
246
Django is a high-level Python Web framework
that encourages rapid development and clean, pragmatic design.Model: The
application dataView: which data ...
分类:
移动开发 时间:
2014-05-07 20:02:08
阅读次数:
453
需求架构准备工作主从服务器时间同步#
主从服务器同时配置crontab任务,与NTP服务器同步时间即可*/5 * * * * ntpdate 172.16.0.1
&>/dev/null部署配置主库配置vi /etc/my.cnf server-id = 1 # 在复制架构中,需保持全局唯一 ...
分类:
数据库 时间:
2014-05-07 18:47:42
阅读次数:
509
播放电影文件: iOS
sdk中可以使用MPMoviePlayerController来播放电影文件。但是在iOS设备上播放电影文件有严格的格式要求,只能播放下面两个格式的电影文件。?
H.264 (Baseline Profile Level 3.0)? MPEG-4 Part 2 video (...
分类:
移动开发 时间:
2014-05-07 09:36:53
阅读次数:
552
A dimensional database is a relational database that uses a dimensional data model to organize data. This model uses fact tables and dimension tables in a star or snowflake schema. So in general we ca...
分类:
其他好文 时间:
2014-05-07 06:29:37
阅读次数:
384
AD620 芯片93 dB min Common-Mode Rejection Ratio
(G = 10) 0.28 mV p-p Noise (0.1 Hz to 10 Hz) THEORY OF OPERATIONThe AD620 is a
monolithic instrumentatio...
分类:
其他好文 时间:
2014-05-06 14:30:28
阅读次数:
263