05 2013 档案

面试经典--不用中间变量交换两个整数的值
摘要:在网上搜了大概有四种办法:用下面的程序验证一下:void swap1(int &a,int &b){ a=a+b; b=a-b; a=a-b; return;}void swap2(int &a,int &b){ a=a-b; b=a+b; a=b-a;}/*swap3 很经典*/void swap3(int &a,int &b){ a^=b; b^=a; a^=b; /*等效的一句话操作是: a^=b^=a^=b; */}/*swap4 ,最精炼*/void swap4(int &a,int &b){ b=a^b^(a=b).. 阅读全文

posted @ 2013-05-19 10:09 阿Q新传 阅读(204) 评论(0) 推荐(1) 编辑

Zend Framework 1.12 官方中文手册网址
摘要:Zend Framework 1.12 官方中文手册网址http://framework.zend.com/manual/1.12/zh/manual.html 阅读全文

posted @ 2013-05-06 14:54 阿Q新传 阅读(411) 评论(0) 推荐(0) 编辑

php.ini 中开启短标签
摘要:控制参数: short_open_tag = On 如果设置为Off,则不能正常解析类似于这样形式的php文件: <? phpinfo() ?> 而只能解析 <?php phpinfo() ?> 这样形式的php文件 所以要想php支持短标签,需要我们把short_open_tag设置为On.<?php echo $title;?> 就可以简写为<?=$title;?> 阅读全文

posted @ 2013-05-02 11:55 阿Q新传 阅读(174) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示