8 Star 29 Fork 34

rubikplanet / ChanlunX

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
KxianChuLi.h 705 Bytes
一键复制 编辑 原始数据 按行查看 历史
rubikplanet 提交于 2021-10-09 22:16 . 使用std::vector
#ifndef __KXIANCHULI_H__
#define __KXIANCHULI_H__
#include <vector>
using namespace std;
#pragma pack(push, 1)
// 原始K线
struct KxianRaw
{
float gao;
float di;
};
// 表示合并后的K线
struct Kxian
{
float gao; // K线高
float di; // K线低
int fangXiang; // K线方向
int kaiShi; // 开始K线坐标
int jieShu; // 结束K线坐标
int zhongJian;
};
class KxianChuLi
{
public:
vector<KxianRaw> kxianRawList; // 元素K线表
vector<Kxian> kxianList; // 包含处理后的K线表
void add(float gao, float di); // 添加一根K线高和低进行处理
};
#pragma pack(pop)
#endif
1
https://gitee.com/rubikplanet/ChanlunX.git
git@gitee.com:rubikplanet/ChanlunX.git
rubikplanet
ChanlunX
ChanlunX
master

搜索帮助