Location(int lon,int lat);
Location operator ++();
Location operator --();
void* operator new (size_t size);
void operator delete( void * ptr );
Location::Location(int lon,int lat)
coutendl"Longitude : "l1endl;
cout"Latitude : "l2endlendl;
void* Location::operator new(size_t size)
cout"Overloaded new operator called....." endl;
void * rtn = malloc (size ) ;
Location Location::operator ++()
Location Location::operator --()
void Location :: operator delete( void *memory )
cout"Overload delete operator called....."endlendl;
free( memory );
Location l1(10,20), *l2= new Location(30,40);
coutendl"Coordinates for Location 1:";
cout"After applying overloaded ++ operator on Location 1 : ";
cout"Coordinates for Location 2:";
cout"After applying overloaded -- operator on Location 2 : ";
Good Work Brother
well done but one problem occur when it compiled and further continue when press any key. plz make it clear to me. thanx
AOA, bhaai MashaALLAH good work but compilation main error arahay hain please is ko clear kardain.
Thank u so much bhaiya..... but i need ur help to learn c++ its quire difficult 4 me to solve an assignment.i hope u will guide me..
now its compile and run fine...
thank u soo much dear................
but yah v compile nhi hoo rhi
no need of thanks....if u have any problem with in this file tell me...
ye assignment gaalat hai us ne value object k through mange hai laken is me to assignment k through dia hai value