Search Results - CodeGuru Forums
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. Re: calling mem ber function by object pointer

    Thanks u all
  2. calling mem ber function by object pointer

    Hi,
    I have the following piece of code.


    #include<iostream>
    using namespace std;

    class Test
    {
    public:
  3. Replies
    6
    Views
    419

    Re: Reference and const pointer

    Thanks.
    So is it wrong to say Reference is constant pointer?
  4. Replies
    6
    Views
    419

    Reference and const pointer

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

    Thanks laser.
    Now it seems to be correctly resolved thread
  6. 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...
  7. Replies
    11
    Views
    1,103

    Re: virtual destructor

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

    Re: Using Comparator in Set

    Thanks.
  9. Replies
    4
    Views
    430

    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
  10. Replies
    4
    Views
    430

    Using Comparator in Set

    I have the piece of code


    #include<iostream>
    #include<set>

    using namespace std;

    class Test
    {
  11. Replies
    3
    Views
    503

    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...
  12. Replies
    3
    Views
    503

    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:
  13. Replies
    9
    Views
    1,204

    Re: Final Class in c++

    There is not keyword like "final" is present in c++
  14. Replies
    9
    Views
    1,204

    Re: Final Class in c++

    One more doubt. why the most derived class calls the virtual Base class directly
  15. Replies
    9
    Views
    1,204

    Re: Final Class in c++

    thanx for answers
  16. Replies
    9
    Views
    1,204

    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;
  17. Replies
    6
    Views
    720

    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++...
  18. Replies
    3
    Views
    729

    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
  19. Replies
    2
    Views
    278

    Re: for_each and normal function

    I can just say Brilliant.

    Thanks in one line u explained it very well
  20. Replies
    2
    Views
    278

    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.


    ...
  21. Replies
    5
    Views
    988

    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...
  22. Replies
    5
    Views
    988

    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...
  23. Replies
    5
    Views
    988

    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();
  24. Replies
    6
    Views
    728

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

    by Rajesh1978
    Replies
    7
    Views
    603

    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...
Results 1 to 25 of 225
Page 1 of 9 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center