Thread: matrix class without STL

  1. #1
    Registered User
    Join Date
    Apr 2009

    matrix class without STL


    i'm trying to write a templated class that is for calculating a determinant of an n by n matrix, but i go stuck. it is important to not use the STL library at all.. i getting an error in my code. can you help me? i've already gone through the existing threads..

    so my code so far is:

    #include <iostream>
    using namespace std;
    template <class T>
    class Matrix {
    	int rows;
    	int cols;
    	T *data[rows][cols];
    	Matrix(const Matrix<T>&);
    	void load(int, int, T);
    	T read(int, int);
    	void print();
    	T determinant();
    thank you.


  2. #2
    Registered User
    Join Date
    May 2007
    What you've asked is the equivalent of saying "Proof read my story", but then only giving the chapter titles and headings.

    I see nothing that shows us what the error is, and I see no code with which I could conduct a test.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  3. Matrix and vector operations on computers
    By DavidP in forum A Brief History of
    Replies: 11
    Last Post: 05-11-2004, 06:36 AM
  4. Overloaded [] with matrix class problem
    By PJYelton in forum C++ Programming
    Replies: 4
    Last Post: 02-27-2003, 02:52 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM

Tags for this Thread