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 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    191

    Re: Multi threaded insertion into STL Map

    Yes without synchronization there will be lot of problem.

    Thankss
  2. Replies
    2
    Views
    191

    Multi threaded insertion into STL Map

    Suppose multiple threads are are trying to insert into a STL Map, both are trying to insert with same key. As per my understanding it will not cause any issue till you invalidate the iterator. Here...
  3. Re: calling mem ber function by object pointer

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

    Hi,
    I have the following piece of code.


    #include<iostream>
    using namespace std;

    class Test
    {
    public:
  5. Replies
    6
    Views
    451

    Re: Reference and const pointer

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

    Reference and const pointer

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

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

    Re: virtual destructor

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

    Re: Using Comparator in Set

    Thanks.
  11. Replies
    4
    Views
    435

    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
  12. Replies
    4
    Views
    435

    Using Comparator in Set

    I have the piece of code


    #include<iostream>
    #include<set>

    using namespace std;

    class Test
    {
  13. Replies
    3
    Views
    516

    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...
  14. Replies
    3
    Views
    516

    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:
  15. Replies
    9
    Views
    1,232

    Re: Final Class in c++

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

    Re: Final Class in c++

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

    Re: Final Class in c++

    thanx for answers
  18. Replies
    9
    Views
    1,232

    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;
  19. Replies
    6
    Views
    744

    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++...
  20. Replies
    3
    Views
    732

    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
  21. Replies
    2
    Views
    280

    Re: for_each and normal function

    I can just say Brilliant.

    Thanks in one line u explained it very well
  22. Replies
    2
    Views
    280

    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.


    ...
  23. Replies
    5
    Views
    997

    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...
  24. Replies
    5
    Views
    997

    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...
  25. Replies
    5
    Views
    997

    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();
Results 1 to 25 of 227
Page 1 of 10 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