Jump to content

typedef struct


Recommended Posts

#include "newhw.h"
#include <stdio.h>

typedef struct   {

int n_estacoes;
int n_pecas;
char *modo;
int *estacoes;

void escreve_fich (int n_estacoes,int n_pecas,char *modo, int *estacoes);
void Le_fich(PLANO Plan);

Tou a fazer isso no .h no entanto ele da-me o seguinte erro

"error C2371: 'PLANO' : redefinition; different basic types

        c:\documents and settings\manuel gomes\ambiente de trabalho\si\wh_v1.1\logplanotrabalho.h(13) : see declaration of 'PLANO'"

Mas não estou a redefinir, até porque já experimentei outro nomes ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.