Figure 1: Tests SimplePlugIn class

cout << "\nTest SimplePlugIn class..." 
     << endl;

SimpleMath smath( argv[1] );

if (smath.IsLoaded())
{
    smath.Who(str, sizeof(str) - 1);
    cout << "smath name is "
         << str
         << endl;

    cout << "smath.Add(20,30) = "
         << smath.Add(20,30)
         << endl;

     cout << "smath.Mul(10,5) = "
         << smath.Mul(10,5)
         << endl;
}
else
    cerr << "Failed to create "
         << "SimpleMath object."
         << endl;