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

Search:

Type: Posts; User: D_Drmmr

Page 1 of 80 1 2 3 4

Search: Search took 0.07 seconds.

  1. Re: boost serialization of nested struct does not work in c++

    Could you please fix the compiler errors, such that people can just copy-paste the code if they want to run it?
    What about the serialization "does not work"?
  2. Replies
    47
    Views
    1,189

    Re: Ising Model C++ Metropolis Algorithm

    Please use code tags! Your code is practically unreadable without them.
    Did you step through your code with the debugger? What values are you getting for x and y?
  3. Replies
    47
    Views
    1,189

    Re: Ising Model C++ Metropolis Algorithm

    That's horrible. Why would you advice someone to use a macro for this? A simple text-replace can solve this without obfuscating the code.

    @OP Using two different names for the same variable will...
  4. Replies
    8
    Views
    2,473

    Re: How to convert CString to std::string?

    What do you mean with "doesn't work"?
  5. Replies
    2
    Views
    240

    Re: Some question about transformation

    That doesn't look like the rotation axis. When rotating about an axis, all point on the axis remain in the same location.
  6. Replies
    2
    Views
    160

    Re: Best code for alert algorithm

    Is there an RSS feed to get notifications?
    What kind of platform do you want to run on?
  7. Replies
    16
    Views
    431

    Re: Sorting parallel arrays in C++

    You could always call the algorithm with a pair of boost::zip_iterators. You'll need to write a custom (or generic reusable) comparator though, which is not so nice without having support for generic...
  8. Replies
    8
    Views
    239

    Re: Array of CString size checking

    In C++ I would recommend using this instead:


    template<typename T, size_t N>
    size_t arraySize(T(&)[N])
    {
    return N;
    }

    It's much harder to use incorrectly.
  9. Replies
    16
    Views
    541

    Re: question about sorting on bitstrings

    Yes, it's a possible way to tackle the problem. You can model the problem as a longest path problem by representing each (unique) input string as a node in the graph and adding edges between any pair...
  10. Replies
    16
    Views
    541

    Re: question about sorting on bitstrings

    That doesn't seem like an exact definition of the solution. You'll need to define formally what you mean with "longest possible runs". Is a solution with three runs of length 8, 5, 3 better or worse...
  11. Replies
    2
    Views
    218

    Re: std::map, insert() issue

    There is always std::make_pair(...) to prevent some repetition.

    I think in this case overload resolution would pick the non-template overload, so it would pick the (key_type, mapped_type)...
  12. Replies
    3
    Views
    301

    Re: Pass value from one function to another

    #include <string.h>

    I guess you wanted the <string> header.


    char filename[256];
    string n;
    string filelist;
    void CreateNew(ofstream & FileNew);
    void ReadNew(ifstream & FileGet);
  13. Replies
    4
    Views
    269

    Re: Strange compiler behavior

    I'm pretty sure that not returning a value from a function (other than main) that has a return value is undefined behavior.
    Probably the compiler created the machine code in such a way that the...
  14. Replies
    4
    Views
    235

    Re: Need help with easy problem

    You can write a function to find the highest 2 values in a series of values by keeping track of the highest and second highest while iterating over all values.
    However, since you already know the...
  15. Re: Are these static variables local or global ?

    Unless they are defined as static global variables in different compilation units. The keyword static has a different meaning when applied to global variables, than when applied to class/local...
  16. Replies
    18
    Views
    721

    Re: Homework help: is this a good design?

    Never put a using declaration at global scope in a header file. Every file that includes this header will get that using declaration, which can cause name conflicts.
    IMO, it's way easier to learn to...
  17. Replies
    2
    Views
    534

    Re: What should I use to do this

    You could write a VBA macro to read the xml file and copy the text in it to the right places.
  18. Replies
    3
    Views
    258

    Re: Unicode problem

    AFAIK, that's not a valid string literal, because it doesn't consist of ASCII characters. You should read up on Unicode encodings.

    You should use the Unicode setting unless you want to support...
  19. Re: Constructor with functional / construction via lambda

    Is it possible to pass this as an argument to the function object?
  20. Replies
    6
    Views
    382

    Re: Need urget c++ help (nested if-else)

    Instead of complaining about others, why don't you have a good look at yourself first? You were able to solve the problem yourself (or at least, without help from anyone here) in 2 hours. Yet you did...
  21. Replies
    5
    Views
    254

    Re: Problem with drawing Bezeir curve

    What did you think the curve should look like with those control points?
  22. Re: [Beginner] Looping - Circumference, Diameter, Area

    That's because you have syntax errors. What is the first error message that the compiler gives you? What's the corresponding line in your code? What is it about the error message that you don't...
  23. Thread: strncpy_s

    by D_Drmmr
    Replies
    3
    Views
    217

    Re: strncpy_s

    AFAIK, it's Microsoft specific. strncpy is standard.
  24. Replies
    3
    Views
    287

    Re: Exit application using thread in MFC SDI

    1. Please use code tags. Your code is unreadable without them.
    2. Does the code you posted actually replicate the problem?
    3. You are using uninitialized variables. j is never assigned a value....
  25. Replies
    19
    Views
    802

    Re: C++ Memory Mapped Files Trouble

    Then either you need to change the project specs or you need to learn C++ if you want to achieve anything. You cannot bluff your way through C++. It is completely unlike the languages you mention,...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center