📄 testdformat.cpp
字号:
#include "Dformat.h"
#include <iostream>
#include <conio.h>
#define NUM 10
using namespace std;
void main()
{
Dformat CORDIC;
CORDIC.print();
int integer[ NUM ]={1,2,4,8,16,32,64,128,256,512};
float f[ NUM ]={ 0 };
CORDIC.trans2f( integer,f,NUM );
cout << "f=\n";
for( unsigned i=0;i<NUM;++i )
{
cout << '\t' << f[i];
integer[i]=0;
}
CORDIC.trans2Q( f,integer,NUM );
cout << "integer=\n";
for( unsigned i=0;i<NUM;++i )
cout << '\t' << integer[i];
_getch();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -