📄 dvb_t.cpp
字号:
// DVB_T.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <math.h>
#include <stdio.h>
#include <iostream.h>
#define N 4
void ifft(double ar[],double ai[]);
void fft(double ar[],double ai[]);
void main()
{
double ar[4]={1,-1,-1,1};
double ai[4]={1,1,1,1};
ifft(ar,ai);
fft(ar,ai);
FILE *fp;
if((fp=fopen("d:\\result.doc","wb+"))==NULL)
{
printf("Can not open the file\n");
}
for(int i=0;i<N;i++)
{
fprintf(fp,"ar[%d]=%f\n",i,ar[i]);
fprintf(fp,"ai[%d]=%f\n",i,ai[i]);
}
fclose(fp);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -