如替

解决方案 »

  1.   

    #include<math.h>
    #include<vector>#define PI 3.1415926static int slowFFTsub(vector<float> &real, vector<float> &imag, float f) 以上定义有错吗?
    e:\project\fft\fft.cpp(6) : error C2065: 'vector' : undeclared identifier
    e:\project\fft\fft.cpp(6) : error C2062: type 'float' unexpected
    e:\project\fft\fft.cpp(8) : error C2143: syntax error : missing ';' before '{'
    e:\project\fft\fft.cpp(8) : error C2447: missing function header (old-style formal list?)
    Error executing cl.exe.
    Creating browse info file...fft.exe - 4 error(s), 0 warning(s)
      

  2.   

    注意namespace 
    std::vector
      

  3.   

    加一句:
    using namespace std;
    在#include 语句下面
      

  4.   

    没错,在程序的开始处要加上:
    using namespace std;
      

  5.   

    #include <vector>
    using namespace std;