初学c++,这个实在不知道要咋做,哪位大神帮个忙 题目在下面
程序代码:#include "stdafx.h"
#include<iostream>
using namespace std;
class homepage {
private:
char *photo;
int height;
int width;
public:
homepage(char*p, int h, int w)
{}
homepage()
{}
void set(char*p, int h, int w)
{}
homepage(homepage &hp)
{}
void print()const
{
cout << "photo:" << photo<< "," << "height:" << height << "," << "width:" <<width << endl;
}
~homepage()
{
delete homepage;
}
};
homepage::homepage(char*p, int h, int w)
{
photo = p;
height = h;
width = w;
}
int main()
{
return 0;
}





