new and delete operator overloading
- by Angus
I am writing a simple program to understand the new and delete operator overloading. How is the size parameter passed into the new operator?
For reference, here is my code:
#include<iostream>
#include<stdlib.h>
#include<malloc.h>
using namespace std;
class loc{
private:
int longitude,latitude;
public:
…