ood midterm exam```

来源:互联网 发布:java无符号整型 编辑:程序博客网 时间:2024/05/10 16:53

http://www.ibm.com/developerworks/cn/aix/library/1212_lufang_c11new/

 1= overload and override;

2 = cast style;

3 = principles in the proj 1 2 3 4;

4 = template specialization 

5 = rtti;;enum;

6 = dark corner;

7 = project 1 2  design;



specialaztion ::

typedefchar* pChar;
  template<>
  const pChar max(const pChar& s1,const pChar& s2)
  {
     return ((strcmp(s1,s2)>0) ? S1 : s2);
  }
8 composition and aggreagation implement in the c++;

composition ::

class C

{

  R r;

}

aggregation :

class C

{

func()

{

R r;

R *r = new R;

}

}

http://ecs.syr.edu/faculty/fawcett/handouts/CSE687/MidTerm/ 

left value 


http://saturn.stanford.edu/scripts/xgill/browse.pl?code=firefox&id=sqlite3_c_sqlite3EndTable_struct_Parse___struct_Token___struct_Token___struct_Select___

· principals ···

typeid';

0 0
原创粉丝点击