constellation.cpp
来自「USB开发的一些代码!适用于EX-USBFX2平台!这些源码还是蛮不错的!」· C++ 代码 · 共 29 行
CPP
29 行
// Constellation.cpp: implementation of the CConstellation class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Constellation.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CConstellation::CConstellation()
{
}
CConstellation::~CConstellation()
{
}
void CConstellation::Map(int nBits, int nBitCount, Complex & cCoordinate)
{
cCoordinate.r = (nBits & 0x2) ? -1 : 1;
cCoordinate.i = (nBits & 0x1) ? -1 : 1;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?