Ver Mensaje Individual
  #1  
Antiguo 13-12-2017
Avatar de aguml
aguml aguml is offline
Miembro
 
Registrado: may 2013
Posts: 885
Reputación: 14
aguml Va por buen camino
Problema con estructura de C

Hola amigos, tengo esta estructura:
Código PHP:
#define SIZE_LIST_CAT3 7

struct LArmasCat3 {unsigned char valor; AnsiString nombre;} ListaArmasCat3[SIZE_LIST_CAT3] = {
        {
0x01, "Planta curativa verde"},
        {
0x02, "Planta curativa roja"},
        {
0x04, "Spray de primeros auxilios"},
        {
0x05, "Hierba (verde)"},
        {
0x06, "Hierba (Rojo)"},
        {
0x07, "Hierba (G + G)"},
        {
0x09, "Hierba (G + R)"}
    }; 
Y al compilar me suelta todos estos errores:
Código:
[C++ Error] DefinicionesCadenas.h(370): E2188 Expression syntax
[C++ Error] DefinicionesCadenas.h(370): E2141 Declaration syntax error
[C++ Error] DefinicionesCadenas.h(370): E2190 Unexpected }
[C++ Error] DefinicionesCadenas.h(370): E2190 Unexpected }
[C++ Error] DefinicionesCadenas.h(370): E2040 Declaration terminated incorrectly
Llevo un buen rato dandole vueltas y no se que hago mal ¿pueden ayudarme?
Responder Con Cita