Advertisement
chbing

Untitled

Oct 15th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6. class estoque {
  7.  
  8. int arroz [3];
  9. int feijao [6];
  10. int banana [8];
  11. int tomate [4];
  12. public:
  13.  
  14. void cad ();
  15.  
  16. };
  17. void estoque: cad (){
  18.  
  19. printf ("bem vindo ao estoque");
  20. scanf ("%d", & estoque);
  21. }
  22.  
  23. int main (void){
  24.  
  25. e[0].cad ();
  26.  
  27. system ("pause");
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement