#include
using namespace std;
struct Object{
int a;
int b;
};
void main()
{
Object& MyFunction(int b,int a=20);
Object& rMyObj = MyFunction(5);
cout<<"rMyObj.a="<
delete &rMyObj;
}
Object& MyFunction(int b,int a)
{
Object *o = new Object;
o->a = a;
o->b = b;
return *o;
}
最后一句为啥return *o,而不是return o;或者return &o?
斯蒂芬大帝
繁星点点滴滴
不太明白这两句代码的意思
这行代码看不明白
一直不明白为什末list中的类型是Course,最近这几节课的哪一句代码说明这个问题呢?
head 下边这一行代码 不明白 求老师讲一下
相关分类