#include <iostream>
using namespace std;
class A {
public:
int val;
A(int n) //构造函数
{
val=n;
07返回什么才好呢 【对成员函数赋值+返回类的引用】
于 2022-04-05 21:06:59 首次发布
#include <iostream>
using namespace std;
class A {
public:
int val;
A(int n) //构造函数
{
val=n;