Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #include <cstdio>
  2. #include <cstdlib>
  3. #include <cctype>
  4. #include <cmath>
  5. #include <iostream>
  6. #include <iomanip>
  7.  
  8. #include <string> // SE QUISER STRING
  9.  
  10. using namespace std;
  11.  
  12. class Cliente {
  13. private:
  14. int codigo;
  15. public:
  16. string nome, endereco;
  17. int telefone;
  18. // void depositar (float deposito) {
  19. // saldo = saldo + deposito;
  20. void mostrar_cliente() {
  21. cout << "\n Codigo: " << codigo;
  22. cout << "\n Nome: " << nome;
  23. cout << "\n Endereço : " << endereco;
  24. cout << "\n Telefone: " << telefone;
  25. }
  26.  
  27. // CONSTRUTOR
  28. Cliente () {
  29. cout << " Nome do cliente: ";
  30. getline(cin,nome);
  31. cout << "Endereço: ";
  32. getline(cin,endereco);
  33. cout << " Digite o telefone: ";
  34. cin >> telefone;
  35. // codigo = id;
  36. //system("pause");
  37. }
  38.  
  39. // DESTRUTOR
  40. ~Cliente(){
  41. cout << "\n Deletando contas";
  42. system("pause");
  43. }
  44. };
  45.  
  46. int main(){
  47. int menu;
  48. int id = 0;
  49. Cliente C[100]; // CRIAR OBJETO
  50. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement