Money Class Reference
[Scripts for problems]
Inherits Example.
Detailed Description
Example: SEND+MORE=MONEY puzzleWell-known cryptoarithmetic puzzle. Henry Dudeney, Strand Magazine, July 1924.
Definition at line 50 of file money.cc.
Public Member Functions | |
| Money (const Options &opt) | |
| Actual model. | |
| virtual void | print (std::ostream &os) |
| Print solution. | |
| Money (bool share, Money &s) | |
| Constructor for cloning s. | |
| virtual Space * | copy (bool share) |
| Copy during cloning. | |
Protected Attributes | |
| IntVarArray | le |
| Array of letters. | |
Static Protected Attributes | |
| static const int | nl = 8 |
| Number of letters. | |
Constructor & Destructor Documentation
| Money::Money | ( | bool | share, | |
| Money & | s | |||
| ) | [inline] |
Member Function Documentation
| virtual void Money::print | ( | std::ostream & | os | ) | [inline, virtual] |
| virtual Space* Money::copy | ( | bool | share | ) | [inline, virtual] |
Member Data Documentation
const int Money::nl = 8 [static, protected] |
IntVarArray Money::le [protected] |
The documentation for this class was generated from the following file:
- examples/money.cc (Revision: 5524)
