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

Search:

Type: Posts; User: CornedBee

Page 1 of 9 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    121
    Views
    34,415

    Poll: Re: The grand 'goto' poll

    That would be pretty stupid...
  2. Replies
    25
    Views
    2,240

    Shan't say nothing if you don't say please!

    Shan't say nothing if you don't say please!
  3. Replies
    25
    Views
    2,240

    No, you'll eat the candy ;)

    No, you'll eat the candy ;)
  4. Replies
    25
    Views
    2,240

    Of course it depends how strictly you see...

    Of course it depends how strictly you see "nothing". :)
  5. Replies
    25
    Views
    2,240

    Something that does nothing is slower than...

    Something that does nothing is slower than nothing that does something.
  6. Replies
    25
    Views
    2,240

    The while loop never runs, you forget to reset...

    The while loop never runs, you forget to reset the index.
  7. Replies
    5
    Views
    769

    The >> operator cannot take a const argument, you...

    The >> operator cannot take a const argument, you are modifiying it.
  8. The most common compiler in UNIX is the Gnu...

    The most common compiler in UNIX is the Gnu Compiler Collection, gcc. There are two popular IDEs I know of, Anjuta and KDevelop. Then there are the advanced text editors, which are also often used:...
  9. Replies
    25
    Views
    2,240

    Neither is faster, it only depends on what you...

    Neither is faster, it only depends on what you put in it. Aside from that it's just a matter of syntax.
  10. Thread: complexity

    by CornedBee
    Replies
    1
    Views
    538

    std::map: size: O(1) find & insert: O(log n) ...

    std::map:
    size: O(1)
    find & insert: O(log n)

    stdext::hash_map:
    Not actually a standardized container. Anyway.
    size: probably O(1), no reason not to store it in a variable
    find: Theta(1), but...
  11. Replies
    6
    Views
    1,746

    The outdated code warning is probably due to the...

    The outdated code warning is probably due to the fact that you should use <cctype>, not <ctype.h>.
  12. Replies
    21
    Views
    11,053

    Yes, Sam is right. In the context of classes,...

    Yes, Sam is right. In the context of classes, überschreiben should be override.
  13. Replies
    21
    Views
    11,053

    It looks like this: class int24 { int...

    It looks like this:

    class int24
    {
    int value;

    public:
    int24() {}
    int24(const int24 &o) { value = o.value; }
    int24(int i) { //bounds check and assign }
  14. Replies
    21
    Views
    11,053

    You have to emulate it. 64-bit operations are...

    You have to emulate it. 64-bit operations are supported on some machines, emulated by the compiler on others. 32-bit operations are supported nearly everywhere. 24 bits are an odd number of bytes,...
  15. Replies
    1
    Views
    626

    Uncomment the #pragma and see if the problem goes...

    Uncomment the #pragma and see if the problem goes away. To me it looks very much like such a problem. You can also output sizeof(BBB) with WORD and DWORD. If the DWORD version is 2 bytes larger than...
  16. The third is the best of course. The first...

    The third is the best of course.
    The first duplicates the code and does the unnecessary second check even if the first succeeded.
    The second doesn't do the check, but still duplicates the code....
  17. Replies
    21
    Views
    2,901

    Why bad? Looks flawless.

    Why bad? Looks flawless.
  18. Replies
    18
    Views
    3,285

    Keeping track of references is something that is...

    Keeping track of references is something that is done for instance in Java. There you simply cannot explicitly delete objects, the garbage collector takes care of this. I don't think it makes sense...
  19. Replies
    18
    Views
    3,285

    The database though has strictly defined areas...

    The database though has strictly defined areas where it can search for referenced or referencing objects. C++ cannot, you can't search the whole memory or even stack for pointers. It would require...
  20. Replies
    18
    Views
    3,285

    I mean that an object doesn't know about a...

    I mean that an object doesn't know about a reference to it.
  21. Replies
    18
    Views
    3,285

    That's not what I mean.

    That's not what I mean.
  22. Replies
    21
    Views
    2,901

    BTW, on kas' first post, you can have as much...

    BTW, on kas' first post, you can have as much whitespace between the :: operator and its two operands as you want. You can have none, one on each side, one on one side, have the :: on its own line,...
  23. Replies
    18
    Views
    3,285

    It wouldn't be all that hard. You'd just have to...

    It wouldn't be all that hard. You'd just have to do the work that the DB developers do. :)

    The real problem is the lack of backreferencing. What happens in your DB example if there are three...
  24. Replies
    18
    Views
    3,285

    Relational databases are a lot more specialized...

    Relational databases are a lot more specialized than a general-purpose programming language...
  25. I think that for a while the Dinkumware version...

    I think that for a while the Dinkumware version of the STL provided the implementation of basic_*stream in .cpp file, using the exported templates feature of MSC++. This meant that only the char and...
Results 1 to 25 of 212
Page 1 of 9 1 2 3 4





Click Here to Expand Forum to Full Width

Featured