#ifndef _TYPE_H_
#define _TYPE_H_

#include <string>
#include <map>
#include <vector>
#include <stdlib.h>


//颜色
typedef struct Color
{
	int r;
	int g;
	int b;
}mColor;

//位置
typedef struct point
{
	float x;
	float y;
}mPoint;

//范围
typedef struct area
{
	float w;
	float h;
}mArea;

//BMFont
typedef struct label
{
	std::string content;
	std::string fontName;
	mColor color;
	mPoint point;
	mArea area;	
}mLabel, *pLabel;

//数据
typedef struct dataStr
{
    std::string content;
    std::string fontName;
	mColor color;
	int type;
}sDataStr, *lpDataStr;

typedef map<int, sDataStr> mapData;

#endif
 
在 typedef map<int, sDataStr> mapData; 
报错 :error: expected initializer before '<' token
要加命名空间 using namespace std;
每天进步一点点。

相关文章:

  • 2021-10-21
  • 2021-10-28
  • 2021-04-29
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案