开发者

Problem using recursive method in c++ [closed]

Closed. This question needs debugging details. It is not currently accepting answers.

Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.

Closed 5 years ago.

开发者_StackOverflow社区 Improve this question

I have a class, defined in a .h like this

#ifndef JLLABOUR_H
#define JLLABOUR_H

class JLLabour{

public:
JLLabour(int, int);

double* recursivefft(double*,int);
void FFT(int*);

~JLLabour();

private:
int width;
int height;
};

#endif // JLLABOUR_H

and in my .cpp I have the definition of my recursive function, the problem is that when I call it again , during compilation it doesnt allow me to continue because the method has not been defined yet. I dont know how to solve this, please help.

#include <JLLabour.h>

double* JLLabour::recursivefft(double* x,int asize){
//operations and declartions...
//...


  even = recursiveFFT(sum,m); //<-- the problem is here, in the recursion.
  odd = recursiveFFT(diff,m);

// more operations....
return result;
}
}

FYI I am compiling under Linux, using Qt because Im developing a graphic app...


C++ is case sensitive. Your method is called recursivefft not recursiveFFT.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜