各位高手求帮忙看看纯虚函数
#include<iostream>using namespace std;
class shape
{
public:
shape();
virtual ~shape();
virtual void Point::display();
};
#include<iostream>
using namespace std;
#include"shape.h"
class Point:public shape
{private:
float x1;float y1;
public:
Point();
virtual ~Point();
Point(float a,float b):x1(a),y1(b){}
void display()
{cout<<x1<<","<<y1;}
};
#include "stdafx.h"
#include<iostream>
#include"Point.h"
#include"shape.h"
using namespace std;
int main(int argc, char* argv[])
{Point p(2,3);
p.display();
printf("Hello World!\n");
return 0;
}