surreal5335
07-02-2010, 07:24 AM
I am working on an assignment for class requiring me to use miniVectors and my book is explaining very little about how to set it up properly. I am also having a very hard time finding a tutorial at all online about miniVectors.
So far I have written a program which is delivering a pile of errors I dont have a clue to fix bc my book doesnt really say much and the net thinks I am talking about a mini from France.
So for a start, I am asking about how to properly set up a miniVector:
I have:
void writeMiniVector(const miniVector<T>& v);
void sortMiniVector(miniVector<T>& v);
int vSize = size();
obviously these are my prototypes.
The compiler tells me that:
'T' was not declared in this scope
template argument 1 is invalid
ISO C++ forbids declaration of v with no type
size was declared in this scope
I have included my vector.h file as so:
#include "d_vector.h"
Any suggestions or referals to an in depth article on miniVectors would be much appreciated.
Thanks in advance
So far I have written a program which is delivering a pile of errors I dont have a clue to fix bc my book doesnt really say much and the net thinks I am talking about a mini from France.
So for a start, I am asking about how to properly set up a miniVector:
I have:
void writeMiniVector(const miniVector<T>& v);
void sortMiniVector(miniVector<T>& v);
int vSize = size();
obviously these are my prototypes.
The compiler tells me that:
'T' was not declared in this scope
template argument 1 is invalid
ISO C++ forbids declaration of v with no type
size was declared in this scope
I have included my vector.h file as so:
#include "d_vector.h"
Any suggestions or referals to an in depth article on miniVectors would be much appreciated.
Thanks in advance