ED1A2-TADS S2 2017 – Exemplo TAD – conta.h

 1 /* 
 2  * File:   conta.h
 3  * Author: Osvandre
 4  *
 5  * Created on 7 de Setembro de 2017, 00:50
 6  */
 7 
 8 #ifndef CONTA_H
 9 #define CONTA_H
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #define NOMECLI_MAX_SIZE 100
16 
17 typedef struct {
18     int numero;
19     char nomeCliente[NOMECLI_MAX_SIZE+1];
20     float saldo;
21 } Conta;    
22     
23 /*Prototipos das funcoes*/ 
24 Conta* abrirConta(int, char*);
25 void creditar(Conta*, float);
26 void debitar(Conta*, float);
27 void exibirSaldo(Conta);
28 
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif /* CONTA_H */
35 
36