change the book or something?

Dani AI

Generated

Short expert note: , this is normal for many textbooks — C++ Primer, 5th edition, leaves most exercise answers out so readers work through them. is right about the intent: the exercises are meant for you to solve. is also on the right track: publishers commonly provide instructor-only solution manuals or limited instructor resources, so full answer keys are often not publicly distributed.

Practical tips for self-study and verifying solutions:

  • Treat each exercise as a small project: outline the approach, implement a minimal program, and test corner cases.
  • Compile with a C++11-capable compiler (the 5th edition is C++11-focused). Example compile flags: g++ -std=c++11 -Wall -Wextra exercise.cpp -o exercise.
  • Use assertions, small input sets, and a debugger or deliberate printouts to check behavior rather than relying on a full posted solution.
  • If stuck, search for errata or the book's companion code (publisher/author pages often host example code), or post a focused question showing what you tried and the specific problem or compiler output.

A quick caution: seeking a full solution manual defeats much of the learning value and may be restricted by copyright. For targeted help, describe the exercise number and paste the minimal code you wrote and the exact errors or incorrect behavior; that makes it far easier for others to help.

Recommended Answers

All 3 Replies

Probably because the intent is to write your own answer.

There's probably an answer book for TEACHERS only.

teachers only? Isn't that a self study book?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.