Search:

Type: Posts; User: tabstop

Search: Search took 0.12 seconds.

  1. Replies
    13
    Views
    3,186

    That's the most ... instructive ... example I've...

    That's the most ... instructive ... example I've ever seen.
  2. Replies
    13
    Views
    3,186

    Well. The most obvious thing would be this: ...

    Well. The most obvious thing would be this:


    class Reservation {
    //whatever
    };

    bool operator< (Reservation left, Reservation right) {
    /* I'm assuming that getDate gets some sort of...
  3. Replies
    13
    Views
    3,186

    When I said "sets automatically sort" I meant...

    When I said "sets automatically sort" I meant exactly what I said. If you were storing, say, ints or floats it would be completely automatic. But since you just made up a Reservation object out of...
  4. Replies
    13
    Views
    3,186

    You'll have to decide whether you want a set or a...

    You'll have to decide whether you want a set or a vector. Sets automatically sort, but you don't get to use [brackets]. Vectors allow you to use [brackets], but you will have to keep them sorted...
  5. Replies
    13
    Views
    3,186

    You are using this magic word "set". Do you have...

    You are using this magic word "set". Do you have a set, somewhere? If so, then yes it is sorted, although you will have to define the ordering yourself. (If you really mean that you have a set of...
Results 1 to 5 of 5