thank you debugEnthu, its working :)
According to my knowledge assignment operator called when we are assigning object to existing objects
and copy c_tor called copying...
I am learning member function pointers, wrote following program to understand typedef of function (of other class eg: test) inside other...
Thank you Chong,
In code suggested, test a(b) will call copy c_tor.
But I wanted to know particular case of a(b) where both a and b pre-defined...
I am using g++ compiler
g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the...
I wrote sample (below) program to check when copy constructor and assignment operator called.
my doubt was if object a, b defined...
Thank you xpi0t0s :)
I am extremely sorry , i used 'done' instead of "dont" ...
I want to know why overloading the typecast operator doesnot have 'return type' .
:drum: hi folks :)
Please explain me why C++ done have return type for casting operator? I have googled, understood that its special case and...
Thank you :)
Hi Folks :happy: ,
I need your help, I am getting segmentation fault for "delete bptr_1" ( please refer program written below ).
I got it.. :)
return (cx == 0 && cy == 0 && cz==0);
I am learning operator overloading concept in c++, wrote sample program to test overloading of unary operator '!' and '-'.
Separate names with a comma.