#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; { uCalc::String s("A and C"); s.Owned(); // Causes s to be released when it goes out of scope // Each Replace() call returns the modified string object, allowing the next call. s.Replace("A", "B").Replace("C", "D"); cout << "Result: "; cout << s << endl; }; }