?? c16.cpp
字號:
#include <iostream.h>
class Point
{ public:
Point();
void Init(int a,int b );
Point(int m,int n){X=m;Y=n;}
int GetX(){return X;}
int GetY(){return Y;}
private:
int X,Y;
}B;
void Point::Init(int a,int b)
{ X=a;Y=b;}
void main()
{
Point A;
A.Point();
B.Init(356,53);
//A.Point(99,999);
B.Init(777,88);
cout<<A.GetX()<<","<<A.GetY()<<endl;
cout<<B.GetX()<<","<<B.GetY()<<endl;
A.Init(888,77);
cout<<A.GetX()<<","<<A.GetY()<<endl;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -