源程序:
#include <iostream>
using namespace std;
class A
{
int a, b;
public:
A(int x = 0, int y = 0)
{
a = x;
b = y;
}
};
int main()
{
A *p;
p = new A(4,5);
system("pause");
return 1;
}
运行结果:
标签:std,return,新教材,int,p145,main,public,自考
来源: https://www.cnblogs.com/duanqibo/p/12270109.html