[code]#include <stdio.h>
#include <stdlib.h>
#define VAL_MAX 10;
typedef struct pilha
{
int itens[VAL_MAX];
}Pilha;
[/code]
o q tá errado? =/
[code]#include <stdio.h>
#include <stdlib.h>
#define VAL_MAX 10;
typedef struct pilha
{
int itens[VAL_MAX];
}Pilha;
[/code]
o q tá errado? =/
Qual o erro que acontece ao compilar?
Troque
#define VAL_MAX 10;
por
#define VAL_MAX 10
[code]#define VAL_MAX 10;
typedef struct pilha
{
int itens[VAL_MAX]; // syntax error before ‘;’ token / no semicolon at end of struct
}Pilha; // data definition has no type or storage class[/code]
eita! hehe
vlw! =]