Search:

Type: Posts; User: Champion

Search: Search took 0.01 seconds.

  1. Replies
    26
    Views
    2,975

    Thanks for pointing me to those tools CornedBee,...

    Thanks for pointing me to those tools CornedBee, they could be useful tools for me.
    But no, it is not because the code is so broken, but it is for a safety critical device and we have to know what...
  2. Replies
    26
    Views
    2,975

    Thanks for your help. Could you point me to the...

    Thanks for your help. Could you point me to the right library for a smart pointer that perform such check? Most smart pointer I know are for memory deallocation and checking for uninitialized...
  3. Replies
    26
    Views
    2,975

    Hi Soma, could you please explain why? Is it...

    Hi Soma, could you please explain why? Is it dangerous to do that?

    I actually found that there is a intptr_t which is used to hold the reinterpret_cast result as an int.
  4. Replies
    26
    Views
    2,975

    Performing One's complement on Pointers

    Hi, I am writing a safe pointer object by checking that the pointer is not corrupted before I dereferencing it. I am using the one's complement technique (store a one's complement copy and compare...
  5. Replies
    6
    Views
    1,210

    So would using static prevent the compiler from...

    So would using static prevent the compiler from optimizing it out? Thanks.
  6. Replies
    6
    Views
    1,210

    static const in class

    Hi,

    This question may have been asked before, but I would like some further clarification. Is it always correct to declare a constant this way?


    class A
    {
    private:
    static...
  7. Replies
    2
    Views
    1,306

    I would suggest you to use the debugger in IDE...

    I would suggest you to use the debugger in IDE like those from Borland. Using the debugger is a great way to learn how things work. It allows you to step through the code and see how the variable...
  8. Replies
    6
    Views
    2,138

    1) In secroll(), it is not good to declare int...

    1) In secroll(), it is not good to declare int sum while your input is called sum as well.

    2) I am not sure if you can declare variable before the funciton prototypes.

    3) missing; - usually...
Results 1 to 8 of 8