Help for CUDA FFT ask for help on my program

Hi, Everyone:
I am a starter on CUDA programming, and try to compose a program to fulfil a FFT of an input 1D array.
I trie to copy the example of “” and “simplefft” in SDK, and composed one by myself. However, I met some annoying problem. Two lines in my program were jumped over when it was complied… And the results are all wrong.

These are the two command that do not function as it supposed to be in

9 cufftHandle plan;
10 float2 *work;

I attached all my files in the attachment, hope someone could help me…

Thank you
CUDAWinApp1.rar (402 KB)