Post by b***@coolgroups.com#include "matrixlib.h"
using namespace name1;
using namespace name2;
but i don't think that works.
I'm not sure I know what you want. This works, does it help?
#include <iostream>
#include <cmath>
namespace abc {
//------------------------
// return the sine of an angle expressed in degrees
double sin(double th)
{
static const double pi = 3.14159;
return std::sin(th * pi / 180.);
}
} // end namespace abc
using namespace std;
//===================
int main()
{
cout << abc::sin(45.) << endl; // degrees
cout << std::sin(.98); // radians
cin.get();
}