Update 中括号重载.cpp
这里delete应该是delete[]
This commit is contained in:
		@@ -40,7 +40,7 @@ public:
 | 
			
		||||
            cout << employ[i].name << "   " << employ[i].salary << endl;
 | 
			
		||||
    }
 | 
			
		||||
    ~SalaryManaege() {
 | 
			
		||||
        delete employ;
 | 
			
		||||
        delete[] employ;
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
int main()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user