做人呢就要有始有终不是么。。我还是把这个翻译完了事。Coding with C++With the C++ project finally set up, it's time to start adding some code. We'll start with the NativeAdd.h fi...
分类:
编程语言 时间:
2014-09-12 17:06:33
阅读次数:
252
扩展方式(Extension Method)是给那些不是你拥有的,因而不能直接修改的类添加方法的一种方便的方法。首先我们定义一个类using System;using System.Collections.Generic;using System.Linq;using System.Text;nam...
分类:
其他好文 时间:
2014-09-09 11:12:58
阅读次数:
233
声明一个类时,有实例变量和方法,而如果事后想增加方法的话直接在类里面添加感觉会显得杂乱无章,如果创建一个子类的话,层级多了会糊涂掉。至此,类目诞生。
从上可知,类目就是类的一个派生,你可以理解成事“只有方法,没有实例变量”的一种子类。...
分类:
其他好文 时间:
2014-09-06 08:37:02
阅读次数:
259
文章出处:http://blog.csdn.net/leshami/article/details/9232229 最近在卸载VirtualBox出现了无法卸载的错误。提示为Failed to install the extension. The installer failed with exit...
分类:
其他好文 时间:
2014-09-04 14:53:09
阅读次数:
211
1,找到php.ini配置find / -name 'php.ini'/usr/local/php/etc/php.ini找到extension=php_curl.dll 把前面的分号去掉即可。2,重启phpphp 5.3.3 下的php-fpm 不再支持 php-fpm 以前具有的 /usr/l....
分类:
Web程序 时间:
2014-09-03 00:09:45
阅读次数:
332
groupinstall "X Window System" gnome-common gnome-classic-session gnome-menus gnome-session gnome-session-daemon gnome-shell gnome-shell-browser-plugin gnome-shell-extension-common gnome-shell-exte...
分类:
其他好文 时间:
2014-09-02 20:03:55
阅读次数:
459
给出一数组a,然后要求查询a[i..j]的第k大的数划分树#include#include#includeusingnamespacestd;constintN=100005;structNode{intl,r;intmid(){return(l+r)>>1;}}tree[Nmidval){val[...
分类:
其他好文 时间:
2014-09-01 22:30:23
阅读次数:
309
1.下载微软的php连接驱动:SQLSRV30.EXE(5.4对应,后面的native client要用2012)/SQLSRV20.EXE(5.3对应,native client要用2008)2.解压SQLSERV30.EXE,拷贝对应extension到php的ext目录3.配置php.inie...
分类:
数据库 时间:
2014-09-01 09:14:22
阅读次数:
402
MongoDB与PHP的添加、修改、查询、删除PHP 扩展mongon.mod.dll 下载http://cn.php.net/manual/en/mongo.installation.php#mongo.installation.windows然后php.ini添加 extension=php_m...
分类:
数据库 时间:
2014-08-30 15:06:19
阅读次数:
320