STL源码之vector1. SGI的vectorSGI stl vector继承子一个基类:template > class vector : protected _Vector_base在基类中定义了基本的一些操作,并且封装了了vector所需要的基本的三个指针:struct _Vector_....
分类:
其他好文 时间:
2014-07-13 23:19:35
阅读次数:
188
<?phpdefined(‘ACC‘)||exit(‘AccessDenied‘);classModel{protected$db=null;publicfunction__construct(){try{$this->db=mysql::getIns();}catch(Exception$e){//$e就是前文中throw出来的$error(Exception的实例)//$e对象有一些方法和属性,能准确判断出问题的行.$err=‘‘;..
分类:
Web程序 时间:
2014-07-13 14:48:25
阅读次数:
193
<?phpdefined(‘ACC‘)||exit(‘AccessDenied‘);//配置文件读取类classconf{protectedstatic$ins=null;protected$cfg=array(‘db‘=>‘java0620‘);publicstaticfunctiongetIns(){if(self::$ins===null){self::$ins=newself();}returnself::$ins;}finalprotectedfunction__const..
分类:
Web程序 时间:
2014-07-13 14:33:03
阅读次数:
216
<?phpdefined(‘ACC‘)||exit(‘AccessDenied‘);//封装mysql操作类,包括连接功能,及查询功能.classmysqlextendsabsdb{protectedstatic$ins=null;protected$host;//主机名protected$user;//用户名protected$passwd;//密码protected$db;//数据库名protected$port;//端口protected..
分类:
数据库 时间:
2014-07-13 14:31:08
阅读次数:
354
HTML上传部分 文件名:文件(80M以内): protected void Button1_Click(object sender, EventArgs e) ...
分类:
其他好文 时间:
2014-07-13 11:24:43
阅读次数:
173
//TransmitFile实现下载 protected void Button1_Click1(object sender, EventArgs e) { string strFileName = "dd.ppt"; Response.ContentType = "application/x-.....
分类:
Web程序 时间:
2014-07-13 09:42:39
阅读次数:
521
组合设计模式,就是可以把多个类组合在一个大类中,形成一个树形结构。
#include
#include
#include
using namespace std;
class Coporate
{
protected:
string name;
set coporate;
public:
explicit Coporate(string n = "", string d...
分类:
其他好文 时间:
2014-07-12 19:12:55
阅读次数:
156
最近遇到了TreeView的数据库绑定问题,确实是弄了我好几天,特别是多级节点的分步绑定,最开始不分步,发现全部加载页面都卡爆了,真心让人头疼。所以放出来,给需要的朋友看看,以免大家走冤枉路。
1.只有一级节点的数据表绑定
部分代码:
protected void treeviewbind()
{
string sqlstr=ConfigurationMan...
分类:
其他好文 时间:
2014-07-12 18:37:59
阅读次数:
294
Vibrator public class MainActivity extends Activity { private Vibrator vibrator; @Override protected void onCreate(Bundle savedInstanceState)...
分类:
移动开发 时间:
2014-07-12 14:19:07
阅读次数:
236
一。成员内部类:与类的成员变量一样1可以加任意的修饰:private, protected,顶级类只可以为public, default2内部类不可脱离其外部类的限制使用,因此在外部类以外创建内部类要这样:outerObject=new outerClass(Constructor Paramete...
分类:
其他好文 时间:
2014-07-12 14:01:01
阅读次数:
191