/* We have already had a glimpse of structures with non math classes. Here is the first math example for structure namely a matrix structure. */ #include #include using namespace std ; class Matrix { double ** value; int n; public: Matrix(int _n) { n =_n ; } ~Matrix() { } void Print() { cout << "This is a matrix which is of size = " << n << endl ; } }; // usage of the class int main() { int n = 0; //initializer for the integer cout << "Enter n: "; cin >> n ; cout << "You entered: "<< n << endl; Matrix m(n); m.Print(); return 0; }