Though implementation problem

This is a discussion on Though implementation problem within the C++ Programming forums, part of the General Programming Boards category; Yes, the problem with books are just that they can be difficult to find. So yes, they're all available on ...

  1. #151
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,606
    Yes, the problem with books are just that they can be difficult to find. So yes, they're all available on Amazon, but I don't live in USA, do I? No, sir.
    EDIT: Awesome. I found it online. Too bad there's no index.
    Last edited by Elysia; 05-13-2008 at 02:16 PM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #152
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Elysia View Post
    Yes, the problem with books are just that they can be difficult to find. So yes, they're all available on Amazon, but I don't live in USA, do I? No, sir.
    Neither do I.

  3. #153
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,606
    It's been pretty frustrating when you wanted something but couldn't find it - but I found this book online, so now I'm happy
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #154
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Elysia View Post
    It's been pretty frustrating when you wanted something but couldn't find it - but I found this book online, so now I'm happy
    Which book? Effective STL? Where?

  5. #155
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,606
    Yes, Effective STL. I don't know about the validity of the URL, though, so I'll let someone else judge. But it did turn up on the first page on Google, however:
    http://www.avsnonline.net/library/download.php?id=623
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #156
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Elysia View Post
    Yes, Effective STL. I don't know about the validity of the URL, though, so I'll let someone else judge. But it did turn up on the first page on Google, however:
    http://www.avsnonline.net/library/download.php?id=623
    Cool. That wasn't there last time I searched for it. I doubt it's legal though.
    I can't be sure, but I don't think that's the latest edition of the book either.

  7. #157
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,606
    Well, I figure it's better than nothing, though. It seems dubious, but it's on the first page of google! Who wouldn't find it with a search?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #158
    Banned
    Join Date
    Nov 2007
    Posts
    678
    Quote Originally Posted by Elysia View Post
    ... So yes, they're all available on Amazon, but I don't live in USA, do I? No, sir. ...
    Then where you live, may be we can help if we know that

    Legal or not, thanks for finding Effective STL pdf version
    Just tell me how big it is, you know, my net is so slow (64 kilo bits per seconds).

  9. #159
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,606
    The file is 1.82 MB if you must know.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  10. #160
    Banned
    Join Date
    Nov 2007
    Posts
    678
    Quote Originally Posted by Elysia View Post
    The file is 1.82 MB if you must know.
    Too late now!
    Already downloaded, read, and the verdict, did not make much sense to me!

  11. #161
    Registered User
    Join Date
    May 2008
    Location
    Paris
    Posts
    248
    If anyone knows an on-line available version of Josuttis book on STL...

  12. #162
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,606
    I found this link:
    http://books.google.com/books?id=n9V...bnail#PPR14,M1

    You can browse through a lot of the book, it seems, but as for downloading it, nothing I can find.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  13. #163
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Elysia View Post
    Yes, Effective STL. I don't know about the validity of the URL, though, so I'll let someone else judge. But it did turn up on the first page on Google, however:
    http://www.avsnonline.net/library/download.php?id=623
    Well when I looked for it almost a year ago it wasn't there.
    Too bad they don't have an HTML version, so you can refer people to links to specific sections.

    Quote Originally Posted by manav
    Already downloaded, read, and the verdict, did not make much sense to me!
    If you haven't used much STL or templates in the past, it helps to read it slowly and give yourself time to absorb it. I read it a couple of times already, to pick up the things I forgot after the first read.

  14. #164
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,606
    It does seem to assume you already have basic C++ skills, know about templates, STL containers, etc.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  15. #165
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,606
    I just thought of another question:
    Seeing as I want to improve my iterators, I would set up communication between the iterator and the base class who create the iterator. They would probably communicate via protected/private members.
    This, of course, requires friend functions or a friend class to access those private or protected members. It's not possible to declare a friend from a template type from what I understand, so the iterator cannot directly make the base class a friend.
    What I was thinking then, was to use a sort of helper class, or communication class. But the question is...
    How would I go about making a customizable helper class? Or does it not need to be customized? The helper class would delegate the functions calls between the iterator and the base. Both the base and the iterator could make it friend, if it knew the actual name of this class (not passed as a template type, that is).

    So... anyway, suggestions, if you wouldn't mind, as to how to accomplish this.
    I was thinking I could use it to enhance the relationship between an iterator and its base class. An iterator should be used to specify a range within the base class, and not a range within the data stored in the class. So if it resizes, and data is moved, the iterator would be invalidated. The base class notifies the iterator of this and allows the iterator to set a new position within the new memory region. Or it could simply tell the iterator that it is now invalidated, to catch mistakes.

    Another would be that the iterator can ask the parent for the value at pos X, allow for greater customization of the iterator (it could work better, with more classes). And the best of all is that it could ask the parent to set data, as well. This is especially useful in a ranged iterator which emulates iterator behaviour (since there's not 1 element to change, there's several).

    I was thinking of specializing std::backward_copy too. But I would need to specialize a version which uses my iterators, which again would leave the work with the iterators (the iterator would have to do the work!). So by better communication with the base class, it could avoid doing
    *dst++ = *src++;
    Would would be inefficient.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  2. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 05:24 PM
  3. implementation file
    By bejiz in forum C++ Programming
    Replies: 5
    Last Post: 11-28-2005, 12:59 AM
  4. Replies: 5
    Last Post: 11-07-2005, 10:34 PM
  5. Memory Problem - I think...
    By Unregistered in forum C Programming
    Replies: 4
    Last Post: 10-24-2001, 12:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21