为什么总显示missing‘;’before ‘}’
#include<iostream>
#include <stdlib.h>
using namespace std;
class Coordinate
{
public:int x;
int y;
void printX()
{
cout<<x<<endl;
};
void printY()
{
cout<<y<<endl;
}
};
int main(void)
{
/*Coordinate coor;
coor.x=10;
coor.y=20;
coor.printX();
coor.printY();*/
Coordinate *p=new Cooridnate();
p->x = 100;
p->y = 200;
p->printX();
//P->printY();
// delete p;
//p=NULL;
// system("pause");
return 0;
}