Jump to content
Forum Roportal
Sign in to follow this  

programare in C

Rate this topic

Recommended Posts

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>



#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];





typedef struct


//Ficha de Posto de Trabalho,

int idpsttrab;

char nome[20];

char local[10];

char seccao[20];

char descricao[256];

int idfunc;



typedef struct


//Ficha de Funcion

Share this post

Link to post
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
Sign in to follow this