Re: why does initialise with vector not work here ?
Matthias Pospiech wrote:
This class:
#pragma once
#include <vector>
#include "um.h"
#define MAXMROOT 9 /* 2^(MAXMROOT-1) = # of elements in BRcnt */
class FastFourierTrans
{
public:
FastFourierTrans(void);
~FastFourierTrans(void);
public:
void FFT2D(vector<vector<CComplex> > InputArray,
vector<vector<CComplex> > OutputArray, long N,long sd);
Either use 'std::vector' or add 'using std::vector' before this class
definition. BTW, what book are you reading that doesn't explain 'std'
namespace and how it's to be used?
};
throws the following error i do not understand:
1>e:\daten\dev\cpp\lightmodulator2dmat\lightmodulator2d\FastFourierTrans.h(34)
error C2061: Syntaxfehler: Bezeichner 'vector'
1>.\FastFourierTrans.cpp(17) : error C2065: 'vector':
nichtdeklarierter Bezeichner
1>.\FastFourierTrans.cpp(17) : error C2059: Syntaxfehler: '>'
1>.\FastFourierTrans.cpp(21) : error C2143: Syntaxfehler: Es fehlt ';'
vor '{'
1>.\FastFourierTrans.cpp(21) : error C2447: '{': Funktionskopf fehlt -
Parameterliste im alten Stil?
What is wrong ?
'vector' is undefined. Next time please translate the error message into
English -- this is an English speaking newsgroup.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask