#include <iostream>
#include <string>
using namespace std;
class Cube
{
public:
Cube()
{
cout<<"构造函数";
}
void func (int x)
{
cout<<x<<endl;
}
void func(int x,int y)
{
cout<<"x:"<<x<<"y:"<<y<<endl;
}
private:
int x,y;
};
void main()
{
Cube c;
c.func(1,43);
}
原文链接:https://blog.csdn.net/w605283073/article/details/44141487
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
还没有人抢沙发呢~