Thread: Does anyone have exercise answers for Ivor Horton's Beginning C++ book

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    1

    Thumbs up Does anyone have exercise answers for Ivor Horton's Beginning C++ book

    Published 1998. Answers used to be online in the publishers site, but they have gone for a long time ago. Please, anyone?

  2. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    What is the point of doing exercises ..if you look at answers ?

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    To know if you did it right.
    And if stuck, take a peek at how they did it, and get insight on how it is possible to do such a thing.
    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. #4
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by Elysia View Post
    To know if you did it right.
    .\..all you need is some common sense and a compiler.
    And if stuck, take a peek at how they did it, and get insight on how it is possible to do such a thing.
    ..that is a valid point...but taking a peek generally turns into taking a peek every few seconds (and have a shallow copy !)

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by manasij7479 View Post
    .\..all you need is some common sense and a compiler.
    That is not always enough, as you should know. You may think it's right, but in might really not be.
    It might just happen to work for a certain case. But for all other cases, it might be wrong.

    ..that is a valid point...but taking a peek generally turns into taking a peek every few seconds (and have a shallow copy !)
    People can kill other people with guns, but that doesn't stop stores from selling them.
    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. #6
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by Elysia View Post
    It might just happen to work for a certain case. But for all other cases, it might be wrong.
    So basically, the example becomes a lesson in debugging. That crucial skill programmers are supposed to have.

    I get the "check your work" motivation for looking at provided answers, but I think you end up comparing the author's solution to yours just to see what they did different logically, and so forth... look at the errata to see if there are any mistakes in the answer etc. (Do people even think about the answer being a good answer?) Since depending on a textbook answer is frankly a mark on my pride, I don't encourage it either.

    But, you know, it's bad to hide the answers from people with that sort of pretense. If the answers aren't online, they probably aren't anywhere except the wayback machine (if it's up) or in a companion workbook. You could also get a teacher's edition of your text.

  7. #7
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    There are problems that can be debugged, and there are problems that cannot. Compile errors is one typical example.
    Put yourself in a newbie's shoes. They don't know what the compile errors mean. But perhaps by peeking at the solution, they might find out where their code differs from the answer, and by means of that, be able to detect and fix such mistakes in the future.

    Also, if you get stuck, have no idea how to proceed after thinking and designing, taking a peek at a solution is usually more enlightening than just banging your head against the wall!
    You can learn a lot by looking at answers and solutions.

    Just looking at solutions and not doing the exercises sure enough won't help you in the end, but there are a lot of legitimate reasons to look at the answers and solutions. Don't underestimate those!
    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. #8
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by whiteflags View Post
    You could also get a teacher's edition of your text.
    That surprises me quite a bit..
    Why should a teachers' edition have solutions?
    Unlike Elysia's reasons for students... there can't possibly be good reasons in favour of teachers!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 12-10-2010, 12:07 AM
  2. book exercise
    By luigi40 in forum C# Programming
    Replies: 1
    Last Post: 11-13-2005, 11:28 AM
  3. answers for Ivor Horton's Beginning C++?
    By 7stud in forum C++ Programming
    Replies: 1
    Last Post: 03-17-2005, 12:13 AM
  4. "Ivor Horton's Beginning ANSI C++" Wacha think?
    By Zeusbwr in forum C++ Programming
    Replies: 0
    Last Post: 10-24-2004, 07:30 PM
  5. Answers for exercise in K & R
    By kermit in forum C Programming
    Replies: 7
    Last Post: 01-25-2003, 08:38 PM