下面程序的输出结果是( )。 #include <iostream> using namespace std; class point public: point(int px=10,int py=10) x=px;y=py; getpx( ) return x; getpy( ) return y; private: int x,y; ; void main(voiD) point p,q(15,15); cout<< p点的坐标是: <<p. getpx( )<< , ; cout<<p. getpy( )<<endl; cout<< q点的坐标是: <<q. getpx( )<< , ; cout<<q. getpy( );
A.p点的坐标是:10,10
q点的坐标是:15,15
B.p点的坐标是:0,0
q点的坐标是:15,15
C.p点的坐标是:0,0
q点的坐标是:0,0
D.p点的坐标是:10,10
q点的坐标是:10,10