ECMAScript中有6种简单数据类型:Undefined,Null,Boolea,Number,String和Object,这些都是一些基本知识,有意思在后面 用javascript里的typeof检测一下这6个数据类型你会有新发现
“undefined” ---------- 如果值未定义 ....
分类:
编程语言 时间:
2014-05-15 10:54:52
阅读次数:
365
NSArray、NSSet、NSDictionary 集合类
可以用来装东西OC数组只能存放OC对象、不能存放非OC对象类型,如int、struct\enu等OC数组不能存放nil值1.NSArray 不可变数组1》.
NSArray *array1 = [NSArray array]; // 由....
分类:
其他好文 时间:
2014-05-15 10:23:07
阅读次数:
253
#region 移动窗体 移动窗口 private Point _mousePoint;
private int topA(Control cc) { if (cc == null || cc == this) retu...
分类:
移动开发 时间:
2014-05-15 10:10:20
阅读次数:
349
public class Test { public static void
main(String[] string){ int[] i = new int[10];
System.out.println(i.equals(null)); }...
分类:
其他好文 时间:
2014-05-15 09:54:00
阅读次数:
250
//***************************************************************
//结构体:简单的静态链表
#include
#include
#define NULL 0
#define SIZE 10
struct student
{
char num[SIZE];
float score;
struct student *next;
...
分类:
编程语言 时间:
2014-05-15 02:55:09
阅读次数:
359
Implement strStr().Returns a pointer to the
first occurrence of needle in haystack, or null if needle is not part of
haystack.此题我觉得并不是真要你写出kmp算法。 指针暴力...
分类:
其他好文 时间:
2014-05-15 01:49:42
阅读次数:
330
第一、任意一个比较排序算法在最好情况下的时间复杂度也是O(nlogN);
第二、计数排序
假设n个输入元素的每一个都是介于0到k之间的整数,计数排序可用,需要临时存储空间O(K),时间复杂度是O(n).
#include
using namespace std;
void countingSort(int *A,int len,int max)
{
if(A==NULL || len<...
分类:
其他好文 时间:
2014-05-14 23:58:58
阅读次数:
382
#include
#include
void main(int argc,char *argv[])
{
FILE *in,*out;
if(argc!=3)
{
printf("you forgot to enter a file name\n");
exit(0);
}
if((in=fopen(argv[1],"r"))==NULL)
{
printf("cannot...
分类:
编程语言 时间:
2014-05-14 21:37:56
阅读次数:
321
Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match....
分类:
其他好文 时间:
2014-05-14 19:30:36
阅读次数:
292
old:autoloifaceloinetloopbackautoeth1ifaceeth1inetstaticaddress10.0.13.13netmask255.255.255.0autobr0ifacebr0inetstaticaddress1.1.1.1netmask255.255.255.0gateway1.1.1.1bridge_portseth0bridge_stpoffbridge_fd0bridge_maxwait0dns-nameservers202.106.0.20202.106.1..
分类:
其他好文 时间:
2014-05-14 17:54:12
阅读次数:
216