Search:
Type: Posts; User: Rajesh1978
Search :
Search took 0.01 seconds.
June 11th, 2013, 12:46 PM
Thanks.
So is it wrong to say Reference is constant pointer?
June 10th, 2013, 01:01 PM
Hi,
what is the advantage of using reference over constant pointer?
Can they be used interchangeably?
April 22nd, 2013, 05:53 AM
Thanks laser.
Now it seems to be correctly resolved thread
April 22nd, 2013, 05:26 AM
I agree with Eri. But still the question is on its place as why the default constructor is added by default. What is its role.
Think that I have all the POD attributes then what is the use?
Also...
March 5th, 2013, 12:34 PM
If you have a class with virtual function then the virtual destructor is required. Otherwise normal destructor is sufficient.
December 13th, 2012, 12:48 AM
December 12th, 2012, 11:40 PM
Thanks.
I got it now.
while testing this i got one more confusion.
if i make the comp as below
class comp
December 12th, 2012, 12:09 PM
I have the piece of code
#include<iostream>
#include<set>
using namespace std;
class Test
{
November 26th, 2012, 04:47 AM
This i did not get from any book or tutorial;
I thought logically it should work.
In the first case when Demo d=100 ( constructor with one argument is called)
It is same as Demo d(100) ->the 1...
November 26th, 2012, 04:35 AM
i have used single argument conversion function which gets called in below scenario.
#include<iostream>
using namespace std;
class Demo
{
public:
November 22nd, 2012, 03:58 AM
There is not keyword like "final" is present in c++
November 21st, 2012, 11:42 AM
One more doubt. why the most derived class calls the virtual Base class directly
November 21st, 2012, 09:40 AM
November 21st, 2012, 02:43 AM
i got this program is in http://www.parashift.com/c++-faq-lite/final-classes.html
the code is
#include <iostream>
#include <memory>
using namespace std;
class Fred;
November 18th, 2012, 11:04 AM
Hi,
I did know that the size of a class is increased by 4 bytes (32bit compiler) if the class has a virtual function.
I wrote one program and it is giving strange output.
I am using linux g++...
July 19th, 2012, 07:29 AM
Use valgrind to find out the memory leaks and invalid read/write problems.
It is really helpful in finding the memory corruptions and leaks
June 19th, 2012, 03:43 AM
I can just say Brilliant.
Thanks in one line u explained it very well
June 19th, 2012, 01:10 AM
if we use the for_each function with one list and one normal function then for each element the function will be called.
Then what is the advantage of using function object with for_each.
...
The whole point is that.
If we use virtual function as my first post the problems arise is pointed out by drmmr and also in bridge pattern.
My doubt is how the client code do not change as per...
Thanks.
I agree.
i will now make two hierarchy one for FileProcessor and one for Algorithm.
File processor will use specialization of Algorithm base class.
now the number of classes will...
Hi,
I have the a doubt on how what is the benefit on separating the abstraction and implementation.
The below code
class FileProcessor
{
public:
virtual void processFile();
April 27th, 2012, 06:48 AM
Hi,
What is the advantage of conversion function over assignment operator overloading.
and why there is no return type in the conversion function though it returns an object
April 20th, 2012, 03:24 AM
Thanks all.
This a extracted code from my actual project where it was crashing. Due to some other memory corruption the crash was happening and the BT was pointing some time some where. I doubted...
April 19th, 2012, 01:28 AM
The below code is giving me segment fault during delete [] (*iter) sometimes
Please suggest what is the fault. Is it not the proper way to delete the vector with char *
#include <iostream>...
April 10th, 2012, 02:05 AM
Click Here to Expand Forum to Full Width