这个时间选择器效果极佳,90%模仿win7,刚刚完成第一时间发布,让世界人民都可以学习参考,谢谢大家。

源码浏览请检出:http://svn.firebing.cn/datepicker/trunk

例子:http://firebing.cn/demos/datepicker/

文档:http://firebing.cn/demos/datepicker/datepicker.pdf

需要贡献代码的联系我 QQ:442536278

 

为了增加我的新博客的流量,特此贡献一个漂亮的作品,这是应网友fantasy邀请开发thinksns后台管理面板的一个分支版本,版权归fantasy解释,仅供观赏私下使用,商业开发使用需征得同意

Snap1

此程序未采用任何js框架,速度快,界面漂亮,兼容ie6+,firefox2+,chrome….

pannel252下载pannel252.zip                                  去看演示

字符指针笔记

In: C/C++

5 2009
  • char a[] = "hello";

注:不可以改变a的指向或者移动,必须定义时初始化,可以进行以下操作

char a[];              // 错误;

a++;                                 // 错误;

a = "other";                   // 错误;

a[1] = ‘h’;

// 或者
*(a+1) = ‘h’;

printf("%s\n",a);     // 打印 hhllo;

printf("%s\n",a+1);     // 打印 hllo;

可见a有个隐性的const修饰

  • char b[6];

相当于 char b[] = "\0\0\0\0\0\0";

  • const char c[] = "hello";

注:定义时需要初始化,字符串内容不能更改,c不能改变指向,const修饰的是"hello"

c++;                 // 错误;

c = "other";         // 错误;

c[1] = ‘h’;                 // 错误;

*(c+1) = ‘h’;              // 错误;

printf("%s\n",c+1);    // 打印 ello;

  • const char * d;

注:定义时可不初始化,可以改变d的指向,如下列操作

d = "other";               // 改变指向

printf("%d\n",d);      // 打印d的地址值exam:404

printf("%d\n",&d[0]);// 打印d[0] 的地址值404,与d的地址一样

printf("%s\n",d);    // 打印 other d++; // 移动指向

printf("%d\n",d);    // 打印d的地址405,地址改变了

printf("%d\n",&d[0]); // 打印d[0] 的地址值405,与d的地址一样

printf("%s\n",d);    // 打印 ther

d[0] = ‘h’;          // 试图改变字符内容,错误

可见const修饰的是字符串"other"

  • char *const e = "hello";

注:定义可以不初始化,但是如不初始化将会被当做申明,随后不能改变e的指向,应该没什么意义;可以改变字符串内容。

e[0] = ‘H’;

printf("%s\n",e);      // 打印Hello const修饰的是e ,

可见这种定义与[1]相似,唯一不同的是可以不给初始化值

  • const char *const f = "hello";

注:与上面一样,可以不初始化,不过没多大意义,开头const修饰的是"hello",*右边的const修饰的是f,除了可以不初始化,基本与const char c[]的定义一样

Categories

Archives

  • 小强: 太棒了,顶起耍~ 最近在干啥子。 [...]
  • machine a sous: I’m truly enjoying the design and layout of your site. It’s a very easy on the eyes which makes [...]
  • enarmade banditer: Amazing! This blog looks exactly like my old one! :D .pretty much the same page layout and design. I [...]
  • machine a sous: I like your blog, but could not find how to subscribe to obtain the updates by email. [...]
  • 彬Ge: Opera?没兼容?忘了试了,抱歉 [...]