Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
C++ Windows Programming

You're reading from  C++ Windows Programming

Product type Book
Published in Sep 2016
Publisher Packt
ISBN-13 9781786464224
Pages 588 pages
Edition 1st Edition
Languages
Author (1):
Stefan Björnander Stefan Björnander
Profile icon Stefan Björnander
Toc

Table of Contents (22) Chapters close

C++ Windows Programming
Credits
About the Author
About the Reviewer
www.PacktPub.com
Dedication
Preface
1. Introduction 2. Hello, Small World! 3. Building a Tetris Application 4. Working with Shapes and Figures 5. The Figure Hierarchy 6. Building a Word Processor 7. Keyboard Input and Character Calculation 8. Building a Spreadsheet Application 9. Formula Interpretation 10. The Framework 11. The Document 12. The Auxiliary Classes 13. The Registry, Clipboard, Standard Dialogs, and Print Preview 14. Dialogs, Controls, and Page Setup Rational and Complex Numbers

Graph searching


When the user changes the value of a cell, we need to find the cells that need to be re-evaluated. Again, note the difference between source and target sets. While only formula cells can have non-empty source sets, all kinds of cells (also empty cells) can have non-empty target sets. Another difference between the two sets is that the target sets are defined indirectly by formulas in other cells. If a formula of another cell holds a reference to a particular cell, the reference to the formula cell is added to the target set of the particular cell. In the same way, when a formula is altered or cleared, the reference to that cell is removed from the target sets of all its source cells. When a cell is updated, all its targets are evaluated recursively–the targets cells are re-evaluated, then their target cells are re-evaluated, and so on. The evaluation always terminates when there are no more targets left, or when a circular reference is encountered. We always run out of targets...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}