Search:

Type: Posts; User: CornedBee

Page 1 of 20 1 2 3 4

Search: Search took 0.11 seconds; generated 20 minute(s) ago.

  1. Thread: Tetris game

    by CornedBee
    Replies
    5
    Views
    2,091

    Please note the forum guidelines...

    Please note the forum guidelines, which forbid simply asking people to do all your work for you. Thread closed.
  2. Replies
    3
    Views
    2,918

    This assumption is the reason why singletons are...

    This assumption is the reason why singletons are used. But simple parameter passing and/or dependency injection make for better program structure IMO. So instead of being able to procure a resource...
  3. Replies
    12
    Views
    5,282

    It's not Microsoft-compatible. Cygwin tries to be...

    It's not Microsoft-compatible. Cygwin tries to be Linux-compatible.
  4. Replies
    12
    Views
    5,282

    #include boost::int32_t...

    #include <boost/cstdint.hpp>

    boost::int32_t i32;

    Doesn't look that tough to me ;)
  5. Thread: C Console

    by CornedBee
    Replies
    12
    Views
    3,097

    You could just get Code::Blocks for Windows. ...

    You could just get Code::Blocks for Windows.

    The other option is to write a small wrapper program that does what the Code::Blocks wrapper does (grab return code and execution time and write them...
  6. Thread: C++11 books

    by CornedBee
    Replies
    12
    Views
    3,893

    Stroustrup's "The C++ Programming Language" has...

    Stroustrup's "The C++ Programming Language" has been released in its C++11 version.
  7. If the other program has been in the market for...

    If the other program has been in the market for 25 years - well, patents only last 20. So any patents that protect the old program should in theory be expired or about to expire.

    Of course, the US...
  8. Replies
    25
    Views
    3,768

    Getting instances for decltype/sizeof checks via...

    Getting instances for decltype/sizeof checks via casting nullptr is unnecessarily verbose. Just use std::declval, or if that doesn't exist in your implementation, declare it yourself:

    template...
  9. Boost.Container has flat_set and flat_map, which...

    Boost.Container has flat_set and flat_map, which are implemented in terms of a dynamic array, but provide the interface of an ordered associative container, which means that, iterator validity...
  10. Replies
    10
    Views
    4,498

    Sorry, can't reproduce on my computer. My Clang...

    Sorry, can't reproduce on my computer. My Clang is some pre-3.3 custom build, but that shouldn't really make a difference.
  11. Replies
    10
    Views
    4,498

    Strange, that doesn't look like something Clang...

    Strange, that doesn't look like something Clang should have a problem with. I'm currently trying to install GCC 4.8 on my Mac; if I succeed, I can try this out.

    It's all really just one error,...
  12. Replies
    8
    Views
    1,857

    For 1 and 2 this should actually be easy. Every...

    For 1 and 2 this should actually be easy. Every combination here is ordered, so if 1 and 2 both appear, they have to appear in the first two places. In other words, all the qualifying combinations...
  13. Replies
    4
    Views
    1,811

    Closing, this looks way too much like a homework...

    Closing, this looks way too much like a homework quiz.
  14. Replies
    4
    Views
    2,468

    Try macports or homebrew or something like that...

    Try macports or homebrew or something like that for Macs, they often have -dev packages as well.
  15. Replies
    4
    Views
    2,468

    Do you have to use Qt5? The "normal" way is...

    Do you have to use Qt5?

    The "normal" way is uncompressed RGB values, row by row, pixel by pixel, going left to right, top to bottom. This is the most suitable for fast blitting to the screen or...
  16. Replies
    5
    Views
    1,594

    Test with another compiler. This looks very much...

    Test with another compiler. This looks very much like a bug to me.
    However, I'm pretty sure that the full specialization of PropagatorLoop isn't allowed inside the outer template by pickier...
  17. Replies
    13
    Views
    3,753

    Because C is weird. If you have int a; a = 7;...

    Because C is weird. If you have

    int a;
    a = 7;
    at the global scope, the first line is a so-called "tentative definition". This construct is an unholy hack in the C standard to maintain...
  18. Replies
    2
    Views
    1,420

    This is pretty much the same question as...

    This is pretty much the same question as http://cboard.cprogramming.com/c-programming/155197-static-variables.html with just a slightly different context.
  19. Replies
    26
    Views
    11,204

    Why would you want to use C++ as your UI...

    Why would you want to use C++ as your UI description language? Are you some kind of masochist? :p

    Just describe the UI with QML and write the important part of your application (the logic) in C++.
  20. Replies
    49
    Views
    23,086

    Be extremely wary of the C course you're enrolled...

    Be extremely wary of the C course you're enrolled in. Here's an interesting review of the book you're supposed to use:
    C: The Complete Nonsense
  21. As long as you don't instantiate the container's...

    As long as you don't instantiate the container's copy constructor (i.e. never try to copy the container), that doesn't matter.
  22. Replies
    6
    Views
    1,952

    You can, in theory, use dynamic_cast to cast the...

    You can, in theory, use dynamic_cast to cast the Foo reference down to a Poo or Boo reference, but try to avoid it. It is rather poor style and inhibits extensibility. (It's not always avoidable.)
  23. While you can use move-only objects (such as...

    While you can use move-only objects (such as unique_ptr) in containers, some methods of the containers have more extensive requirements, i.e. they require the element type to be copyable and not just...
  24. Replies
    39
    Views
    6,639

    This thread is clearly not useful anymore.

    This thread is clearly not useful anymore.
  25. No embedded system JVM is doing any relevant...

    No embedded system JVM is doing any relevant dynamic profiling-based optimization that I've ever heard. They don't have the memory for that.
Results 1 to 25 of 483
Page 1 of 20 1 2 3 4