In my program I have defined a global vector with
//=======prototyp es section =============== =====
float select(const int k, std::vector<flo at> &myArr, int iStart, int iEnd);
.....
//====Global Vectors =============== =============== ====
std::vector<flo at> gTmpArr(8000,0) ;
In Main, I would like to pass this vector to a function such as:
myAve=select(mi dnum,gTmpArr,iS tart,iEnd);
.....
......
This is the function statement:
float select(int k, std:vector<floa t> &myArr, int iStart, int iEnd)
However I get the following error:
error C2061: syntax error : identifier 'std'
error C2065: 'iEnd' : undeclared identifier
error C2065: 'iStart' : undeclared identifier
error C2065: 'myArr' : undeclared identifier
What is the correct way to define the prototype and pass the vector?
Thanks for any help.
Dennis
//=======prototyp es section =============== =====
float select(const int k, std::vector<flo at> &myArr, int iStart, int iEnd);
.....
//====Global Vectors =============== =============== ====
std::vector<flo at> gTmpArr(8000,0) ;
In Main, I would like to pass this vector to a function such as:
myAve=select(mi dnum,gTmpArr,iS tart,iEnd);
.....
......
This is the function statement:
float select(int k, std:vector<floa t> &myArr, int iStart, int iEnd)
However I get the following error:
error C2061: syntax error : identifier 'std'
error C2065: 'iEnd' : undeclared identifier
error C2065: 'iStart' : undeclared identifier
error C2065: 'myArr' : undeclared identifier
What is the correct way to define the prototype and pass the vector?
Thanks for any help.
Dennis
Comment