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

Search:

Type: Posts; User: Firewireguy

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    1,257

    Re: Design advice needed

    first check if they really should inherit from the same object by reading this through to the end: http://www.parashift.com/c++-faq-lite/proper-inheritance.html#faq-21.6

    The most important part...
  2. Replies
    2
    Views
    5,886

    Re: Mercury Test Director

    TD is a defect tracking tool so for any CR or new functionality surely you should just raise one defect, rather than have one defect per test case??

    I'm not really sure what you're trying to use...
  3. Replies
    16
    Views
    2,037

    Re: new operator

    You are also responsible for deleting the memory even if an exception is thrown.
  4. Replies
    8
    Views
    1,236

    Re: References & pointers equivalence

    I kind of agree but when you first hear about them you're told you can pass them into a function with non of the overhead of a copy parameter, "a bit like passing a const pointer". I still think of...
  5. Replies
    13
    Views
    1,523

    Re: Pass by pointer

    I agree. I meant to say that you could do if you wanted to.
  6. Thread: std::map

    by Firewireguy
    Replies
    17
    Views
    1,478

    Re: std::map

    Mutabe was created for exactly this kind of problem as described in the link I posted above. It is not a hack. I very much doubt your code needs refactoring based on this problem alone.
  7. Replies
    13
    Views
    1,523

    Re: Pass by pointer

    You could also write something like this:


    void TakesAPointer(int* p)
    {
    int i = 5;
    *p = i;
    cout << *p << endl;
    }
  8. Thread: std::map

    by Firewireguy
    Replies
    17
    Views
    1,478

    Re: std::map

    Make the iterator mutable this allows the variable to be modified in a const function. This allows the distinction between ""abstract const", where the user cannot tell that anything has been...
  9. Replies
    13
    Views
    969

    Re: Some Basic C++ Questions

    const int foo(int, int); returns a constant int

    int foo(int, int) const; returns a non-constant int but the function promises not to modify the class it is a part of (however it may modify mutable...
  10. search for methods called from a particular type

    Is there a tool available that will find all instances of a function call made from an object of a particular type instead of the name of the instance of an object?

    So for example you could...
  11. Replies
    6
    Views
    1,917

    Re: real time behaviour

    Solaris has a RT thread option that I think is supposed to be pretty good, but I doubt it's as good as VxWorks.
  12. Replies
    28
    Views
    3,278

    Re: Constructors + Arrays

    I'm not sure but I would have thought the constructors would be fired automatically because you can't create an object without firing it's constructor, but then an array may just allocate the memory...
  13. Replies
    2
    Views
    1,731

    Re: maximum possible rounding error

    I've found out my problem, it's because we're currently using a precision of 2 which means we're rounding to two decimal places. I've tried rounding to 8 decimal places which gives us the result of...
  14. Replies
    2
    Views
    1,731

    maximum possible rounding error

    Hi there,

    I currently have a problem at work with rounding errors, now I know that the error is expected and this is fine. However the tollerance our client has specified is that it can't be more...
  15. Replies
    312
    Views
    25,458

    Re: Answering-and-Asking

    I didn't make any specific plans to. What's the best thing about having a shower with a 12 year old boy?
  16. Replies
    3
    Views
    1,003

    Re: Design by contract

    Documentation? What's that?


    It would be funny if it weren't so true :(
  17. Replies
    3
    Views
    1,058

    Re: C++, Realtime and UML Courses

    The company makes life and pensions administration software. I do the business logic bit. Well sometimes, usually just crappy defects. Sux.
  18. Replies
    3
    Views
    1,058

    Re: C++, Realtime and UML Courses

    I did the C++ Programming for C Programmers course run by QA when I started my job. It's a good course but having done C++ at uni it was more of a refresher than anything else. I suspect you'll...
  19. Replies
    2
    Views
    1,530

    Re: c++ statements required

    As Smasher/Devourer said. No.
  20. Replies
    11
    Views
    1,236

    Re: Problem creating a Singleton class

    Is there any "definitive" bullet proof singleton example skeleton that someone could provide me with that would work in 99% of cases in a multithreaded environment?

    It seems that there are so many...
  21. Replies
    11
    Views
    1,236

    Re: Problem creating a Singleton class

    Thanks, I'll try that when I get home tonight.

    As I say it's currently only an early prototype and I've never written a Singleton before. I thought that at the end of main() the destructor for...
  22. Replies
    11
    Views
    1,236

    Problem creating a Singleton class

    I'm trying to create a Singleton class and keep getting an unresolved external error when linking. The code I have is this:

    Simulation.h:


    #if...
  23. Replies
    2
    Views
    4,340

    Re: Extract domain label from url

    Well you could use regexp or a basic strcmp or something if you have a list of all top level domains.

    What do you want in cases like this though?:

    http://my.updates.microsoft.co.uk
  24. Replies
    2
    Views
    3,954

    Re: roles in a software company

    I'd pretty much agree with the above.

    I prefer the term Software Engineer because I think that software development should be an engineering disipline, although at the moment my official job title...
  25. Replies
    0
    Views
    651

    css table help

    Right I have this page:

    http://www.philybaby.co.uk/index.php?function=pictures&group=2

    now it works great in Mozilla, however in IE it fails miserably.

    The html is:
Results 1 to 25 of 60
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured