We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>
+ Link For Assignments, GDBs & Online Quizzes Solution
+ Link For Past Papers, Solved MCQs, Short Notes & More
Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion
How to Add New Discussion in Study Group ? Step By Step Guide Click Here.
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 : ";
.+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
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