小编sum*_*mar的帖子

这丢弃限定符是什么意思?

“这丢弃了限定符”,是什么意思?

#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++

0
推荐指数
1
解决办法
64
查看次数

标签 统计

c++ ×1