為什么總顯示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;
}
2015-08-12
missing到?jīng)]看出來(lái),多了一個(gè);倒是不假