#### Archived

This topic is now archived and is closed to further replies.

# Nub matrix question (easily answered)

## Recommended Posts

Unliterate    122
where can i find (and how would i include if its not standard) a library (or header file or w/e) with resizable matrices? I''m using msvc++ 6 if it already has one.

##### Share on other sites
Oluseyi    2103
There are matrix classes in Boost, but that''s some serious overkill (you''ll have to setup your compiler for the intense template intricacies Boost relies on). I recommend searching the Dictionary of Algorithms and Data Structures instead (here''s one result).

##### Share on other sites
Unliterate    122
Well, im using my cpp class's (sp) vector.h but a problem occrus when:

struct player{	vector<int> trail_direction();	player *next;};// then in one of my functions:probe->trail_direction.resize(1);//(probe is my linked list traversing pointer)

returns :error C2228: left of '.resize' must have class/struct/union type

I did look it up on MSDN and i thought what i found did apply here.. but I tried changing things around and i cant get it to work.

[edited by - unliterate on March 22, 2004 9:54:51 PM]