自定义函数和指令都可以在前台或者后台进行指定。(一) 自定义指令使用以下格式调用自定义指令: 定义在前台: .........例子: Test text, and the params: ${foo}, ${bar}, ${baaz}输出结果: Test text, and the para...
分类:
其他好文 时间:
2014-07-29 10:25:18
阅读次数:
330
import win.ui;import process;//以下自动生成,不用看./*DSG{{*/var winform = ..win.form(text="AAuto Form";right=215;bottom=95)winform.add(button={cls="button";tex...
分类:
其他好文 时间:
2014-07-28 15:17:23
阅读次数:
194
题意:有n个地方,现在要站人进去,而每两个人之间至少要隔k个空地,问这n个地方能站的人数的期望是多少。分析:考虑dp[i]表示 i 个地方能站的期望数,从左往右推,如果i-k-1=1的话,如果第一个人站在第1个位置,那么右边会空出i-k-1个位置,如果站在2位置,那么右边会空出i-k-2个位置......
分类:
其他好文 时间:
2014-07-27 23:01:39
阅读次数:
195
1.#define保护使用#define防止头文件被多重包括。命名格式为:___H_比如,foo中的头文件foo/src/bar/baz.h#ifndef FOO_BAR_BAZ_H_#define FOO_BAR_BAZ_H_...#endif //FOO_BAR_BAZ_H_2.头文件依赖使用前...
分类:
编程语言 时间:
2014-07-27 21:29:35
阅读次数:
263
首先info.plist文件中,加入View controller-based status bar appearance项
如果设为YES,则View controller对status bar的设置优先级高于application的设置;设置为NO则以application的设置为准。
虽然7.0SDK后在UIViewController中也加入加入了
- (UIStatusBa...
分类:
移动开发 时间:
2014-07-26 17:24:02
阅读次数:
472
题目:Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the ....
分类:
编程语言 时间:
2014-07-26 09:53:57
阅读次数:
273
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.N...
分类:
其他好文 时间:
2014-07-26 01:42:16
阅读次数:
263
元素控件尺寸(pts)Window(含状态栏)320 x 480Status Bar的高度20Navigation Bar的高度44含Prompt的Navigation Bar的高度74Navigation Bar的图标20×20(透明的png)Tool Bar的高度44Tool Bar的图标20×...
分类:
移动开发 时间:
2014-07-25 23:59:36
阅读次数:
597
1 #include 2 #include 3 #include 4 #include 5 6 7 void *thread_foo_func(void *); 8 void *thread_bar_func(void *); 9 10 11 int global = 4;12 13 ...
分类:
其他好文 时间:
2014-07-25 14:00:51
阅读次数:
252
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:
其他好文 时间:
2014-07-24 22:39:53
阅读次数:
252