5 1 F:\C++练习\LineAndCoordinate\coordinate.cpp [Error] prototype for 'Coordinate::Coordinate(int, int)' does not match any in class 'Coordinate'
#include"coordinate.h"
#include<iostream>
using namespace std;
Coordinate::Coordinate(int x,int y)
{
m_iX=x;m_iY=y;
cout<<"Coordinate()"<<endl;
}
Coordinate::~Coordinate(){
cout<<"~Coordinate()"<<endl;
}
void Coordinate::setX(int x){
m_iX=x;
}
int Coordinate::getX(){
return m_iX;
}
void Coordinate::setY(int y){
m_iY=y;
}
int Coordinate::getY(){
return m_iY;
}
class Coordinate
{
public:
Coordinate(int x,int y);
~Coordinate();
void setX(int x);
int getX();
void setY(int y);
int getY();
private:
int m_iX;
int m_iY;
};