摘要: source code:base class:class persion {protected:string _name,_sex,_birthday,_number;int _age;public:persion(string st_name,string st_sex,string st_birthday,int st_age,string st_number);persion(){}virtual bool SearchData(string studentnumber,string name)=0;void DisplayData();};derived class:class Stu 阅读全文
posted @ 2013-07-04 17:28 露水上的青蛙 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1 阅读全文
posted @ 2013-07-04 15:05 露水上的青蛙 阅读(131) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include using namespace std;class Screen{friend istream&operator>>(istream&,Screen&);friend ostream&operator_height||col_width){cerr"; osHeight()|| s1.Width()!=s2->Width()) return false; for(int ix=0;ixWidth();jy++) if (s1.get(ix,jy)!=s2-&g 阅读全文
posted @ 2013-07-04 15:04 露水上的青蛙 阅读(232) 评论(0) 推荐(0) 编辑