Here is the basic framework... my token class is working without problems
Code:
#include "../Token/token.h"
#include<list>
using std::list;
class token;
typedef list<token> row;
class matrix
{
public:
///Constructors
//Copy Constructor here
matrix(int x,int y)
{
r=x;
c=y;
//make l of appropriate size //Can't figure out how..
};//forming an empty one
int r; //row
int c; //col
list<row> l;
///OPerators
///IO
//void input(void); //Would prompt user for info..
//void input(token**);
/// Other Functions
};
In the above code, how do I allocate l ("L"<-list<list<token>>)of a particular size
from the given row and column data?...after it is done..can it be specified such that the individual sizes of the rows must remain constant...and changing one changes all of them ?