(1)“F7”:编译
(2)“F9”:添加/取消断点(3)“ctrl”+“F5”:调试
(4)“tab”:将选中的内容整体右移
(5)“shift”+“tab”:将选中的内容整体左移(6)“Home”:将光标移至行首(7)“End”:将光标移至行末
(8)“Ctrl”+“>”:光标从当前位置右移一个单词(9)“Ctrl”+“
(10)“Ctrl”+“Shift”+“>”:选中从光标当前位...
分类:
其他好文 时间:
2015-04-01 21:55:52
阅读次数:
2383
program as;
type
t1 =record
x,y,h :longint;
end;
var
n,m,s,i:longint;
a :array[1..1000000] of t1;
f :array[0..1000000] of longint;
bool :array[1..1000,1..1000] of boolean;...
分类:
其他好文 时间:
2015-04-01 21:51:26
阅读次数:
128
#include#include#includeusing namespace std;void main(){ int begin=0; //子序列的开头 int end=0; //子序列的结尾 int newsum=0; //当前子序列最大值 srand((unsigned)time(NULL)...
分类:
其他好文 时间:
2015-04-01 21:33:15
阅读次数:
113
1.时间:$start_time = $_GET['start_time']; //2015-01$end_time = $_GET['end_time']; //2015-052.对时间进行拆分:$time['start_time'] = explode('-', $start_time);$.....
分类:
Web程序 时间:
2015-04-01 19:32:16
阅读次数:
122
二分法:
平均时间复杂度:O(log2n)
int halfFuntion(int a[], int length, int number)
{
int start = 0;
int end = length - 1;
int index = 0;
while(start
{
index = start + (end - start)/2
if(a[index] == n...
分类:
移动开发 时间:
2015-04-01 17:51:32
阅读次数:
154
#import "ViewController.h"@interface ViewController (){ UIButton *btn;}@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoa...
分类:
其他好文 时间:
2015-04-01 16:50:06
阅读次数:
120
1,命令编译生成的默认输出文件(可执行文件) 命名为:a.out(Unix), a.exe(Windows)
2,cout输出首先会存到缓存中,而printf之类的输出会直接输出到输出流中。
3,可以从键盘上输入End-Of-File:Ctrl+d(Unix), Ctrl+z(Windows)。
4,C++中最常见的三种编译错误:1)类型错误,将值赋给不同类型的变量;...
分类:
编程语言 时间:
2015-04-01 15:29:18
阅读次数:
158
OC中的.h文件, 是类的声明文件,用来声明函数(方法),变量OC中的.m文件,是类的实现文件,用来实现.h中声明的函数(方法)类的声明使用:@interface ——@end如果在.m文件中使用@interface----@end称为类扩展,一般是私有扩展类的实现使用:@implementatio...
分类:
其他好文 时间:
2015-04-01 15:13:33
阅读次数:
129
消息映射机制
1)必须继承自CCmdTarget
2)类中药添加声明宏 DECLARE_MESSAGE_MAP()
3)类外添加实现宏
BEGIN_MESSAGE_MAP(theClass,baseClass)////本类,基类
ON_MESSAGE(msg,functionname)
END_MESSAGE_MA...
分类:
编程语言 时间:
2015-04-01 13:21:46
阅读次数:
247
第39例php生成不重复随机数<?phpheader("Content-type:text/html;charset=utf-8");$num=5;//要生产多少个随机数$start=0;$end=100;$connt=0;while($connt<$num){$a[]=rand($start,$end);//产生随机数$ary=array_unique($a);//遍历数组$a,如有相同的值则剔除该值$connt=c..
分类:
Web程序 时间:
2015-04-01 07:09:43
阅读次数:
174