Operator Overloading
Craynic
posted @ 2010年8月09日 09:13
in 未分类
, 1331 阅读
Pascal/C++ included;
object
pascal
type dot=object procedure a(); operator +(a,b:dot) c:dot; begin end; end; procedure dot.a();
c++
object dot void a(){} dot operator+(dot a, dot b){} };
record/struct
pascal
type dot=record end; operator +(a,b:dot) c:dot; begin end;
c++
struct dot{ } dot operator+(dot a, dot b){ return *this; }
- 无匹配
2022年9月28日 02:04
Bihar School Examination Board is announced Physics (PS), Chemistry, Biology (EVS) solved sample question paper with BSEB 10th Model Paper 2023 for general science students for the academic year of 2023, BSEB Matric Science Question Paper every BSEB student can download the BSEB class 10th grade Science model paper in set wise and section wise for all subject and chapter wise suggestions from Bihar Board 10th Science Model Paper 2023 Pdf.