Sota Posted November 23, 2009 at 09:54 PM Report Share #297342 Posted November 23, 2009 at 09:54 PM #include "newhw.h" #include <stdio.h> typedef struct { int n_estacoes; int n_pecas; char *modo; int *estacoes; } PLANO ; 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 More sharing options...
_7_up_ Posted November 23, 2009 at 10:25 PM Report Share #297348 Posted November 23, 2009 at 10:25 PM É obvio q ai n tens problema nenhum.. Portanto o q está a causar o erro é a fantástica linha #include "newhw.h" Como n sei o q isso tem, n t posso ajudar... Link to comment Share on other sites More sharing options...
Sota Posted November 23, 2009 at 10:31 PM Author Report Share #297350 Posted November 23, 2009 at 10:31 PM consegui resolver o problema incluindo o PLANO no newhw.h . Este tem muita coisa:S Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now