Search:

Type: Posts; User: deadpoet

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Poll: Quick Code Review for Obtaining UNIX HBA Information

    I would like to get a code review from some of the C Board experts. This is a working example of my code, so this is not a do my work for me scenario. However, I would like to know if there are any...
  2. How to Determine LAN Speed and Duplex Setting

    Hello to All,

    I need to programmatically determine the LAN Speed and Duplex setting (HALF/FULL) of a network card in the UNIX environment. I am mainly interested in HP-UX, Solaris, and Linux. Does...
  3. Replies
    2
    Views
    2,633

    Prelude, as always you have provided a solid...

    Prelude, as always you have provided a solid answer to my question. Thanks for all your assistance.

    DeadPoet
  4. Replies
    2
    Views
    2,633

    Simple Question on Correct Usage of memset

    Hello to All,

    Here is a simple question related to memset. I have seen various methods used when using memset now, I want to know the correct manner. Lets say you have the following code:


    ...
  5. Replies
    3
    Views
    1,295

    You will also need to ensure that your buffer is...

    You will also need to ensure that your buffer is large enough to handle that additional character data. You have it set to 20 and this does not appear to be large enough. You can use strlen to get...
  6. Thread: question

    by deadpoet
    Replies
    5
    Views
    982

    Rock on my brother Elad! It is much easier to...

    Rock on my brother Elad! It is much easier to read when someone uses correct bracketing. Then I do not have to stop and think about what the author/developer is trying to say. You know, did they...
  7. Replies
    13
    Views
    1,312

    I am suprised that Borland C++ compilers does not...

    I am suprised that Borland C++ compilers does not have map. Is this like a freebee version that came with a CD? If you are using Linux than you can get the gcc compiler from FreashMeat . The...
  8. Replies
    13
    Views
    1,312

    What compiler are you using and for what...

    What compiler are you using and for what operating system?

    DeadPoet
  9. Replies
    13
    Views
    1,312

    Oh yes, you are correct Elad this is not the only...

    Oh yes, you are correct Elad this is not the only way. Structures are a very solid part of any simple and/or complex data structure. You can even stick a pointer to a structure into a map comtainer...
  10. Thread: question

    by deadpoet
    Replies
    5
    Views
    982

    When using source code that may have been written...

    When using source code that may have been written on other operating systems you may have to tweak the includes and namespaces, as well as, your environmental pathing. Generally, compilers do a...
  11. Replies
    13
    Views
    1,312

    I would follow hk_mp5kpdw advice and use a map...

    I would follow hk_mp5kpdw advice and use a map container. It provides a very easy to use indexed key-value container to store data.

    DeadPoet
  12. Dude, you are impressive. Let me digest the...

    Dude, you are impressive. Let me digest the information.

    Thanks,

    DeadPoet

    Update 1:
    I think that I was not looking at the problem in that manner and I did not fully grasp what Prelude was...
  13. Yes. You are right that the pet does not care...

    Yes. You are right that the pet does not care about the house in every case, but if the pet were a fish and its house was a fish bowl then does the fish bowl have water. Water acting like a really...
  14. Let me study your code for a momemt. Great code...

    Let me study your code for a momemt. Great code but some of the meaning has been lost. The AnimalHouse in your example MUST have a data structure that is needed by both Dog and Cat that you must...
  15. I am attempting to implement the multiple...

    I am attempting to implement the multiple inheritance that Prelude suggested. I am just trying to keep generate a template that should be easily understood and replicates the problem without making...
  16. If it may help clarify the situation the original...

    If it may help clarify the situation the original post which details the actual problem is located at the following C++ Programming URL: Abstract Classes and Object Creation and Access. It is a...
  17. Need Help: Trying to understand Abstraction and Inheritance

    To all:

    I need a little more help in trying to understand Abstraction and Inheritance. I want to have an Animal that is either of class Dog or Cat. Pretend that the Dog and Cat have some common...
  18. After re-reading your post, I wanted to clairify...

    After re-reading your post, I wanted to clairify one aspect.



    My thought behind having the CInventory class as abstract is to provide the ability to expand the code as follows:



    ...
  19. Let me work with the information that you have...

    Let me work with the information that you have provided. I think you have a solid grasp of what I am trying to accomplish and I am sure that I will have additional questions but I must think about...
  20. Yes, the multiple inheritance concept is what I...

    Yes, the multiple inheritance concept is what I am going for. Do I have the instantiation from main correct?

    CInventory *ptrCI = new CDevice( new CStorge(), new CNetwork() );

    Finally, does...
  21. Prelude, I am not sure that this will cover...

    Prelude,

    I am not sure that this will cover the scenario. Let me place the scenario into the contex that I am working with and try to add some rational thought.

    If we take the Animal scenario...
  22. Replies
    3
    Views
    5,034

    Look at the following webpage, it may help....

    Look at the following webpage, it may help.
    http://www.thinkage.ca/english/gcos/expl/c/lib/strtod.html




    #include <iostream.h>
    #include <string>
    #include <stdlib.h>
    #include <cmath>
  23. Replies
    2
    Views
    1,710

    This is just a guess. I see your prototype for...

    This is just a guess. I see your prototype for ReportError

    but I do not see the actual function. Is it contained somewhere else? If you have cut and pasted the code from some other source or...
  24. Help Needed: Abstract Classes and Object Creation and Access

    To all,

    I will try to keep this scenario simple. I want to try to create a class having the following design:


    **************
    ** ...
  25. Replies
    3
    Views
    3,335

    Thanks to everyone. DeadPoet

    Thanks to everyone.

    DeadPoet
Results 1 to 25 of 51
Page 1 of 3 1 2 3