next up previous contents
Next: Straight-line Programs Up: Variables Previous: Header Files

Usage Examples

  #include "variable.h"

  int
  main(int argc, char** argv)
  {
    Variable v1 = "x1";               // Creates a Variable with name "x1"
    v1.index(1);                      // Set its index to 1 
    v1.slp(Slp(&v1));                 // Makes its Slp be a terminal Slp with 
                                      // itself as its leaf node. 
    v1.value = 11;                  // Set its value. 
  }

1.0



Ashu Rege
Fri May 9 17:57:21 PDT 1997