Advertisement
Jkljk

TRABALHO 1 - estruturas.h utilizando modularização

Sep 29th, 2020
986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. #ifndef ESTRUTURAS_H
  2. #define ESTRUTURAS_H
  3. #include <stdio.h>
  4. #include <string.h>
  5. #include <ctype.h>//biblioteca para uso da funçao toupper
  6. #define qtd 20
  7. #define size 4
  8.  
  9.  
  10. typedef struct produtos{
  11.     char nome_produto[50];
  12.     char pais_origem[50];
  13.     int qtd_items;
  14.     char codigo[9];
  15.     char PP[3]; //dois primeiros caracteres do país de origem em Maiúsculo
  16.     char DDD[size];//código de três dígitos variando de 000 a 999 de acordo com a ordem de registro de produtos.
  17. }Produtos;
  18. Produtos produto[qtd];
  19.  
  20.  
  21.  
  22. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement