Robcgt 0 Raportează post Postat Iulie 10, 2012 buna am si eu o problema in c, si nu reusesc sa ii dau de capat, la compilarea codului imi apareo eroare de tipul : "componentes do not name a type" asta e codul, daca re cineva timp si chef sa arunce o privire astept sugestiile voastre, multumesc. /* * File: main.c * Author: tiago silva * * Created on May 30, 2012, 9:54 AM */ // Included files #include <stdio.h> #include <stdlib.h> //Defines #define FICHEIRO_COMPONENTES "cmp.dat" #define FICHEIRO_POSTTRABALHO "psttrab.dat" #define FICHEIRO_FUNCIONARIOS "func.dat" #define FICHEIRO_OPERACOES "ops.dat" #define FICHEIRO_EMPRESA "empresa.dat" /* * */ typedef struct { //Ficha de Componentes; int idcmp; char designacao; int nserie; int datadeaquisicao; int garantia; int idfornecedor; int idfabricante; char tipo[256]; char condicao[256]; int idepsttrab; char obs[256]; }fComponentes; typedef struct { //Ficha de Posto de Trabalho, int idpsttrab; char nome[20]; char local[10]; char seccao[20]; char descricao[256]; int idfunc; }fPostodetrabalho; typedef struct { //Ficha de Funcion Partajează acest post Link spre post Distribuie pe alte site-uri