单项选择题
若有以下程序:
#include <iostream>
using namespace std;
class point
{
private:
int x, y;
public:
point ( )
{
x=0;
y=0;
}
void setpoint(int x1,int y1)
{
x=x1;
y=y1;
}
void dispoint ()
{
cout<<"x="<<x<<" , "<<"y="<<y<<end1;
}
};
int main ( )
{
point *p=new point;
p->setpoint (5, 12);
p->dispoint ();
return 0;
}
程序运行后的输出结果是( )。
A.x=12,y=12
B.x=5,y=5
C.x=12,y=5
D.x=5,y=12