#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; // 1. The uCalc instance (uc) is the factory // 2. Create a Transformer from the instance { uCalc::Transformer t(uc); t.Owned(); // Causes t to be released when it goes out of scope // 3. Define a Rule on the transformer t.FromTo("apple", "FRUIT"); // 4. Process text and get the result cout << t.Transform("An apple a day.") << endl; }; }