CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Rajesh1978

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    7

    Re: Reference and const pointer

    Thanks.
    So is it wrong to say Reference is constant pointer?
  2. Replies
    6
    Views
    7

    Reference and const pointer

    Hi,
    what is the advantage of using reference over constant pointer?
    Can they be used interchangeably?
  3. Re: [RESOLVED] Implicit default ctor - what is it for?

    Thanks laser.
    Now it seems to be correctly resolved thread
  4. Re: Implicit default ctor - what is it for?

    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...
  5. Replies
    11
    Views
    603

    Re: virtual destructor

    If you have a class with virtual function then the virtual destructor is required. Otherwise normal destructor is sufficient.
  6. Replies
    4
    Views
    331

    Re: Using Comparator in Set

    Thanks.
  7. Replies
    4
    Views
    331

    Re: Using Comparator in Set

    Thanks.
    I got it now.

    while testing this i got one more confusion.

    if i make the comp as below



    class comp
  8. Replies
    4
    Views
    331

    Using Comparator in Set

    I have the piece of code


    #include<iostream>
    #include<set>

    using namespace std;

    class Test
    {
  9. Replies
    3
    Views
    358

    Re: 2 Argument Conversion Function

    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...
  10. Replies
    3
    Views
    358

    2 Argument Conversion Function

    i have used single argument conversion function which gets called in below scenario.



    #include<iostream>
    using namespace std;

    class Demo
    {
    public:
  11. Replies
    9
    Views
    714

    Re: Final Class in c++

    There is not keyword like "final" is present in c++
  12. Replies
    9
    Views
    714

    Re: Final Class in c++

    One more doubt. why the most derived class calls the virtual Base class directly
  13. Replies
    9
    Views
    714

    Re: Final Class in c++

    thanx for answers
  14. Replies
    9
    Views
    714

    Final Class in c++

    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;
  15. Replies
    6
    Views
    519

    size of Polymorphic class

    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++...
  16. Replies
    3
    Views
    666

    Re: Tracing a memory error on unix

    Use valgrind to find out the memory leaks and invalid read/write problems.

    It is really helpful in finding the memory corruptions and leaks
  17. Replies
    2
    Views
    243

    Re: for_each and normal function

    I can just say Brilliant.

    Thanks in one line u explained it very well
  18. Replies
    2
    Views
    243

    for_each and normal function

    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.


    ...
  19. Replies
    5
    Views
    708

    Re: Abstraction and Implementation

    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...
  20. Replies
    5
    Views
    708

    Re: Abstraction and Implementation

    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...
  21. Replies
    5
    Views
    708

    Abstraction and Implementation

    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();
  22. Replies
    6
    Views
    675

    Assignment Operator

    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
  23. Thread: vector

    by Rajesh1978
    Replies
    7
    Views
    551

    Re: vector

    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...
  24. Thread: vector

    by Rajesh1978
    Replies
    7
    Views
    551

    vector

    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>...
  25. Replies
    6
    Views
    448

    Re: Virtual Inheritance

    i agree with nuzzle
Results 1 to 25 of 223
Page 1 of 9 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width