#include "stdafx.h" 【扩展信息:新手指南-指针篇】
#pragma warning(disable:4786)#include <string>#include <vector>using namespace std;#include "serialport.h"
#ifdef dll_exports
#define dll_api __declspec(dllexport)#define expimp_template#else#define dll_api __declspec(dllimport)#define expimp_template extern #endif//电量结构
class dlvalue {public: dlvalue(){} char time[20];//时间 char metercode[30];//电表号 char zdl[20];//总电量(千瓦时) char fdl[20];//峰电量(千瓦时) char gdl[20];//谷电量(千瓦时) char jdl[20];//尖电量(千瓦时) char pdl[20];//平电量(千瓦时)public: bool operator < (const dlvalue &c) const {return true;} bool operator == (const dlvalue &c) const {return true;}};//费率设置结构
class setfeerate{public: setfeerate(){} char mark[3];//费率标志 01---代表峰, 02---代表谷,03---代表尖, 04---代表平. char time[20];//时间 hh:mm:ss-hh:mm:ss (开始时间-结束时间)public: bool operator < (const setfeerate &c) const {return true;} bool operator == (const setfeerate &c) const {return true;} };... 下一页