1.打开文件 integer file_id; file_id = fopen("file_path/file_name");2.写入文件:$fmonitor,$fwrite,$fdisplay,$fstrobe //$fmonitor只要有变化就一直记录 $fmonitor(file_id...
分类:
其他好文 时间:
2015-02-26 13:21:41
阅读次数:
254
原文来自:http://my.oschina.net/pc100/blog/380016过程以保留字procedure开始,没有返回值;函数以保留字function开始,有返回值。参数位于括号里面,多个参数之间以分号分隔,例如:procedure SetDate(Year: Integer; Mon...
原文:类型 - PHP手册笔记类型简介 PHP 支持 8 种原始数据类型。 四种标量类型: boolean(布尔型,不区分大小写) integer(整型) float(浮点型,也称作double) string(字符串) 两种复合类型: array(数组) object(对象) 最后是两种特殊类型:...
分类:
Web程序 时间:
2015-02-26 09:45:05
阅读次数:
147
here’s what my first (virtual) solution was:123456function Refactored(const someInputParameters : integer): boolean;constreturnValue : array [0..1] of...
分类:
其他好文 时间:
2015-02-26 01:17:18
阅读次数:
109
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.保存最典型的,1,5,10,等,然后如果左边的数比右边的小,则减去左边的数,否则相加pa...
分类:
其他好文 时间:
2015-02-25 22:15:34
阅读次数:
147
Description:
In the figure, each node is labeled with an integer from {1, 2,...,16}. Node 8 is the root of the tree. Node x is an ancestor of node y if node x is in the path between the root and node...
分类:
编程语言 时间:
2015-02-25 14:18:40
阅读次数:
191
A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key ...
分类:
其他好文 时间:
2015-02-25 09:06:58
阅读次数:
193
Primitive RootsTime Limit:1000MSMemory Limit:10000KTotal Submissions:3155Accepted:1817DescriptionWe say that integer x, 0 2 using namespace std; 3 in....
分类:
其他好文 时间:
2015-02-25 01:52:09
阅读次数:
213
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".解题思路:这题比较基础,但想写对也不太容易。首先知道的一点,不能将数字直接Integer.pa...
分类:
其他好文 时间:
2015-02-24 21:02:42
阅读次数:
158
Description描述Let f(n) be a sum of digits for positive integer n. If f(n) is one-digit number then it is a digital root for n and otherwise digital roo...
分类:
其他好文 时间:
2015-02-24 16:20:33
阅读次数:
180