The companion site · 20 chapters · 63 agent traps · 166 code files
AI Assisted C and C++ Programming
Learn the Machine, Direct the Agent
A first course in C and C++ for students who know Python, written for a world where a coding agent can produce the assignment in seconds. You learn the machine by hand, then earn the agent, direct it with a written spec, and prove its work with instruments that do not hallucinate.

Every chapter, every assignment
The working loop
- 1PredictYou, no AI
- 2WriteYou, no AI
- 3SpecifyYou
- 4DelegateThe agent
- 5AuditYou and the tools
- 6DefendYou, live
The agent can write the code. Only you can own it. How the loop works →
What the agent may do grows as you do
Three phases
Chapters 1 to 9
Tutor
Explains concepts and compiler messages, quizzes you and makes practice problems. It writes no code you submit.
Chapters 10 to 15
Pair
Writes small units from a specification you wrote first. You audit every line.
Chapters 16 to 20
Team
Several agent sessions in separate roles. You direct them and make the final call.
In every phase, the hand-worked concept section, the prediction and the memory checkpoint stay AI-free.
The book
AI Assisted C and C++ Programming: Learn the Machine, Direct the Agent, by Dr. Jerry A. Smith. 792 pages in five parts, 20 chapters (Chapter 20 optional) and seven appendices, with a running project, a field-sensor station, carried through six programming assignments. Every listing in the book was compiled and run.