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

Search:

Type: Posts; User: superbonzo

Page 1 of 52 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: Algorithm Help - Statistical Relativity

    how is the score computed ?
    what's the final result ? ie, the full n*(n+1)/2 entries matrix of scores ? a top-ten for a given entry ? etc ... ?
  2. Replies
    10
    Views
    500

    Re: Implementig a hot-reload system

    off the top of my head, alternative solutions could be

    1) write a plugin for an existing 3d editor ( I'm personally in love with 3dstudio max and it's perfect for this purpose, but it's costly ......
  3. Re: Is it possible to add to (i.e. extend) a std::stringstream ?

    yep, stringstream does not "append" by default when its string buffer is not empty. You can

    1) in c++11, open in append mode



    std::stringstream whatever("initialize, ",...
  4. Re: Runtime error R6025 - pure virtual function call

    wait, I misread your post, the error happens in vs2013 ( and not in vs2010 as I assumed in my previous post, sorry ), but unfortunately I don't have a copy of vs2013 to test with at the moment.
    ...
  5. Re: Runtime error R6025 - pure virtual function call

    the std::locale/std::codecvt_utf16 relevant source code ...



    anyway, I resurrected a copy of vs2010 and the program



    #include <fstream>
    #include <locale>
  6. Thread: 3d vector

    by superbonzo
    Replies
    11
    Views
    951

    Re: 3d vector

    via lightweight proxy objects, say:



    #include <iostream>

    template < typename T >
    struct Proxy
    {
    T& up_; // the previous level
  7. Replies
    15
    Views
    1,051

    Re: cross correlation

    now, premising that, friendly speaking, your code is really a mess :) ( my advice is to pick some good c++ book to get the basic )

    the "logic" seems correct at first sight, though it's strange...
  8. Re: Challange for you becomes a challenge for others! Help creating a code snippet:

    I'm not sure I follow you ... should the snippets be tricky and hard to "solve" ? or should they convey some dangerous practice in a simple and concise way ?

    BTW,



    uhm, standard wise, null...
  9. Replies
    15
    Views
    1,051

    Re: cross correlation

    performance aside, strictly speaking there's no need of working in the frequency domain, simple cross correlation should work in time domain too for not too complex scenarios ( like the OP case, to...
  10. Re: Runtime error R6025 - pure virtual function call

    as far as I know, given that you cannot legally instantiate an object of abstract type, the only way of "legally" triggering that error ( undefined behaviour aside ) is when a base class subobject...
  11. Re: Challange for you becomes a challenge for others! Help creating a code snippet:

    it's not so easy; unfortunately the standard is not very explicit on when a null pointer dereference ( or more generally, an indirection of a pointer to an object with indeterminate value ) gives ub...
  12. Replies
    15
    Views
    1,051

    Re: cross correlation

    uhm, why ? note that the OP ( as far as I can tell :) ) wants to find a maximum of the cross correlation function, that does give a time delay, at least with "low" snr in the given time window; how...
  13. Re: Compacting short sequences in a long sequence in a reversible maner

    assuming vertex throughput is the bottleneck ( are you sure ? are you using proper instancing techniques to minimize draw calls ? etc... ), alternatively, it should be trivial to write a fragment...
  14. Re: Compacting short sequences in a long sequence in a reversible maner

    so, given a string you want to encode it into some smaller data in order to fetch arbitrary substrings positions "without doing a brute-force search".

    the solution depends on what you mean by no...
  15. Re: How to make a std::map return null when there is nothing "at" a certain position?

    why ? functions and "pure" lambdas are *almost* equivalent ( ignoring ADL issues ), what would buy you a local function wrt a "pure" local lambda ? locality aside, note that the point here is also...
  16. Re: CRLF problem in code blocks ?

    OK, found the problem, the culprit was the (online) c++ editor from which I copy pasted the output, that silently appended a lot of spaces after each line ( but the first ), hence creating the doubly...
  17. Re: CRLF problem in code blocks ?

    uhm, leave aside the code snippet, please; consider the following, hand typed code block



    / \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__
    \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ ...
  18. Re: CRLF problem in code blocks ?

    uhm, If it were the logic in the code snippet, then how the same (I mean literally, the one I copy pasted between code tags ) output renders correctly on a platform and not on another ? :confused:
    ...
  19. [RESOLVED] CRLF problem in code blocks ?

    please, take a look at this post;

    there's an ascii graphics in a code block at the end; it renders correctly on Windows, but on mac shows doubled lines; maybe, a crlf issue ?
  20. Re: How to make a std::map return null when there is nothing "at" a certain position?

    and if you need this only in one place, so that creating a new class just for that it's not worth it, but using find() makes your code difficult to follow, it's easy to write a local lambda nowadays:...
  21. Replies
    6
    Views
    432

    Re: Hexagon Grid

    as previsouly said, you just need a pair of integers for representing a position in the hex grid; "moving" between cells simply means adding integers vectors.

    For example, given the generators in...
  22. Re: error: prototype for 'int miniBag::add(const T&)' does not match any in class

    uhm, the error says it all ... functions declared in the class body should have the same signature of the corresponding out of class body definition ( take a look at the add(),has(),etc... members...
  23. Re: How to make a std::map return null when there is nothing "at" a certain position?

    but this is not what the OP asked for; he's not trying to handle errors, he wants a "find" with a zero fallback value;



    is the -1 return value an error code or a valid result ? in the latter...
  24. Replies
    6
    Views
    432

    Re: Hexagon Grid

    nope ( depending on what do you mean by homogeneous ), there are also the so called quasicrystals ( like Penrose tilings ), that are nothing but aperiodic projections of higher dimensional regular...
  25. Re: What is the best matching data structure for C# binary heaps in C++ with boost?

    well, then use a std:: set as razzle suggested, or, if you really need an heap for performance reasons and erasures are rare, you can use a std:: vector with the heap functions I previeously referred...
Results 1 to 25 of 1296
Page 1 of 52 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




HTML5 Development Center