
Example: SEND+MORE=MONEY puzzle More...
Public Types | |
| enum | { MODEL_SINGLE, MODEL_CARRY } |
| Model variants. More... | |
Public Member Functions | |
| Money (const Options &opt) | |
| Actual model. | |
| virtual void | print (std::ostream &os) const |
| 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. | |
Related Functions | |
(Note that these are not member functions.) | |
| int | main (int argc, char *argv[]) |
| Main-function. | |
Example: SEND+MORE=MONEY puzzle
Well-known cryptoarithmetic puzzle. Henry Dudeney, Strand Magazine, July 1924.
| anonymous enum |
| Money::Money | ( | const Options & | opt | ) | [inline] |
| Money::Money | ( | bool | share, |
| Money & | s | ||
| ) | [inline] |
| virtual void Money::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
| virtual Space* Money::copy | ( | bool | share | ) | [inline, virtual] |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) | [related] |
const int Money::nl = 8 [static, protected] |
IntVarArray Money::le [protected] |