Search:

Type: Posts; User: tap3ah

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    2,448

    int m, d, y, h, n; while (input_data >> m >> d...

    int m, d, y, h, n;
    while (input_data >> m >> d >> y >> h >> n)
    fileData.push_back(new Appointment(m, d, y, h, n));
  2. Replies
    8
    Views
    1,107

    If you are going to use grumpy's code you must...

    If you are going to use grumpy's code you must remove line 4 from tha function

    spriteAddress = 0;
    Local spriteAddress is set to point to the_address but if you set it to 0 you'll get the same...
  3. As I already mentioned copy...

    As I already mentioned



    copy is a standard algorithm. But don't worry, I'm not mentioning it to humiliate you either.


    See 12-1 corrected.

    Well, thank you for your detailed dissection of...
  4. Actually, I used dozens of technical forums...

    Actually, I used dozens of technical forums without using a single harsh word.


    Thank you for pointing that out. I would probably realize that myself after long period od inactivity of the...
  5. You posted while I was typing my first solution....

    You posted while I was typing my first solution. You were just too fast.


    This was aimed to people actively working on those exercises, or at least own the book. I thought it was obvious.
    The...
  6. [12-1] corrected

    class Str{
    friend
    istream& operator>>(istream&, Str&);
    public:
    typedef size_t size_type;
    Str& operator+=(const Str& s){
    char *old_data(data);
    data = alloc.allocate(length + s.length);...
  7. Zero-sized array was a mistake. I left it to...

    Zero-sized array was a mistake. I left it to solve it later, but forgot about it because the code DID compile (gcc 4.6.2).

    I'm sure you see logic in your reasoning, but the truth is, you are just...
  8. If that's really true you would spend your time...

    If that's really true you would spend your time pointing out what I did wrong, instead of writing your hateful post.

    The whole reason I started this thread is that I badly needed help with some...
  9. [12-1]

    Reimplement the Str class, but choose an implementation strategy that requires that the class manage the storage itself. For example, you might store an array of char and a length. Consider what...
  10. [5-1]

    From the authors:
    Rethinking How to Teach C++Part 7: Payback time
    Rethinking How to Teach C++, Part 8: An interesting revision
  11. [11-6]

    Add an operation to remove an element from a Vec and another to empty the entire Vec. These should behave analogously to the erase and clear operations on vectors.



    // from the code from the...
  12. Exercise solutions from "Accelerated C++" (Koenig/Moo)

    Post your own solutions, or comment those posted by others.
Results 1 to 12 of 12