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

Search:

Type: Posts; User: monarch_dodra

Page 1 of 80 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    16
    Views
    3,321

    Re: Windows exe Format Specification

    That thread was 12 years old.

    The account was created specifically for that single post... Which contains a link to a .exe on a file sharing website...

    Speaking of which, isn't giving links to...
  2. Replies
    17
    Views
    319

    Re: Can someone help me get started?

    How did you print your top row to the correct size? for loops. Just do the same, but printing spaces. BTW, at this point, using named functions might (if you are comfortable with it) make coding...
  3. Replies
    17
    Views
    319

    Re: Can someone help me get started?

    Just in case it wasn't clear, you "lineup" the boundaries by printing extra spaces. You aren't asked to move the cursor around or anything like that.
  4. Replies
    17
    Views
    319

    Re: Can someone help me get started?

    Sounds about right.
  5. Replies
    17
    Views
    319

    Re: Can someone help me get started?

    Right, start slow.

    But you'd still need a form of nested loop though, even if you process first and last individually though?

    I'd also recommend using the named functions "printFirstLast" and...
  6. Replies
    17
    Views
    319

    Re: Can someone help me get started?

    Just start slow, and improve little by little. For example, this will print a rectange:


    for (int i = 0 ; i < northSouth ; ++i)
    {
    for (int j = 0 ; j < eastWest ; ++j)
    {...
  7. Replies
    5
    Views
    419

    Re: What is wrong with my code?

    You *just* defined the Array1D class. Why aren't you using it in your Array2D class? Array1D<Array1D<T>*>
  8. Re: What could cause a core dump at iterator pre increment??

    erase remove is stable, but requires o(n) writes on average.

    If you don't need a stable erase, and have only few elements to remove, then "swap with back and pop" is also always a good choice.
  9. Re: why the function itoa takes the signature as char * itoa ( int value, char * st

    For starters, itoa is non-standard.

    I don't know why it returns a string. However, you should yourself understand why it must at least take a string as in input argument.
  10. Re: What could cause a core dump at iterator pre increment??

    Hum... I must have been thinking of list.erase. Weird that map didn't have this behavior in C++98. Seems like a blatant oversight?
  11. Re: What could cause a core dump at iterator pre increment??

    Wasn't that the recommended way to do it in c++98 too? I've never seen the postfix approach before. Scott Meyers recommends it too in Effective STL.
  12. Replies
    8
    Views
    634

    Re: Program-unique values

    Would generating UUIDs be acceptable? It's manual, but it is real stable and works on all platforms.
  13. Re: What could cause a core dump at iterator pre increment??

    The map iyself migh not be corrupt, but iterator increment is only valid if the iterator points to valid data. Are you, by any chance, removing elements as you are iterating? Removing elements while...
  14. Replies
    2
    Views
    643

    Re: Beginner Lab help

    No offense, but please understand what "base 10" means before typing random code. What the heck is "% 45" or "/ 500"? It's not even a mistake, it just makes 0 sense. But at least its a first step.
    ...
  15. Re: A faster algorithm than dijkstra's algorithm

    Right, but every segment "lowers" the end distance. So it remains equivalent. It's worded in terms of "paying" per segment, and having the highest amount left at the end. It's a double negative.
  16. Re: A faster algorithm than dijkstra's algorithm

    Good idea. I'd have rated, but "You must spread some Reputation around before giving it to superbonzo again." :)
  17. Re: A compiler error with the implementation of smart pointer

    I don't want to lash out or anything, but the fact that you'd *try* to implement a "smart pointer", and *then* ask these questions simply boggles my mind. I will stop my train of thought here.
  18. Re: A compiler error with the implementation of smart pointer

    You don't need the implementation to resolve. All you need is the signature: "SP* operator->();". This resolves just fine. However, it's "Display()" that doesn't resolve. Compiling the function*body*...
  19. Re: A faster algorithm than dijkstra's algorithm

    The "maze" as you describe it, seems to be a generic graph, with no particular topology? In this case, I don't *think* there's much faster than dijkstra.

    That said, I don't think you need to...
  20. Re: A compiler error with the implementation of smart pointer

    In C++, the functions declared inside the body of a templatized struct/class are only compiled *if* they get used. They don't create compile errors until they are actually used and needed.

    In your...
  21. Replies
    27
    Views
    1,884

    Re: Bool type problem

    Well, I wasn't yet ready to take it back then, and made no assumptions that I'd nail the test.

    I've since studied up on them, and would like to know what I *still* don't know ;)
  22. Replies
    27
    Views
    1,884

    Re: Bool type problem

    You have picked my interest. I would like to take that test. Could you PM me a copy (I won't share with anyone)? If I fail, I'll wear the crown in my sig ;)
  23. Re: Some Simple Questions and Suggestions

    Please don't update your code after you have been given answers. Rather, post updated code in your replies. I come to this thread, and I now have no idea what is going on, what the problem was, or...
  24. Replies
    27
    Views
    1,884

    Re: Bool type problem

    Oh wow! I had no idea!


    #include <iostream>

    struct S
    {
    int a00 : 1;
    char a01 : 1;
    int a02 : 1;
  25. Re: Overloading std::distance for a specific iterator type

    The idea is not that you are supposed to *specialize* distance (which is a function, and partial specialization is illegal anyways). Rather, you are supposed to *overload* it, and the use Koenig...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center