Live Calculator example.
#include <memory>
#include <vector>
#include <iostream>
#include <string>
int main(int argc, char** argv) {
bool full = true;
if(argc > 1) {
if(0 == std::string("-numbers").compare(argv[1])) {
full = false;
} else {
std::cout << argv[0] << " <-numbers> -- Creates a calculator which is optionally numbers-only." << std::endl;
return 0;
}
}
Stack stack;
FixedOperatorExecutive exec(factory, stack);
exec.doHelp(std::cout);
exec.process(std::cin, std::cout);
return 0;
}
StackOperatorFactory getFullFactory()
StackOperatorFactory getNumbersFactory()
Container of Calculator resources.