“这丢弃了限定符”,是什么意思?
#include <iostream>
using namespace std;
#include <iostream>
using namespace std;
class b
{
public:
void show( b &ob)
{
//this =ob;
cout<<"show";
}
};
int main()
{
b const ob;
b ob1;
ob.show(ob1);
// your code goes here
return 0;
}
Run Code Online (Sandbox Code Playgroud)
#include <iostream>
using namespace std;
#include <iostream>
using namespace std;
class b
{
public:
void show( b &ob)
{
//this =ob;
cout<<"show";
}
};
int main()
{
b const ob;
b ob1;
ob.show(ob1);
// your code goes here …Run Code Online (Sandbox Code Playgroud) c++ ×1