Guest User

Untitled

a guest
Dec 11th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. class personatype{
  2. public:
  3. personatype();
  4. personatype(char[CANT], char[CANT], char[CANT]);
  5. void setnombre (char nombre1[CANT], char apellidopat[CANT], char apellidomat[CANT]);
  6. // void setfechanacimiento (int d, int m,int a);
  7. // std::string getnombre();
  8. // std::string getfechanacimiento();
  9. // std::string RFC();
  10. // std::string printpersona();
  11. private:
  12. nombrestype nombre[CANT];
  13. fechatype fechanacimiento[CANT];
  14. homoclavetype rfc[CANT];
  15. };
  16.  
  17. #ifndef NOMBRES_H_INCLUDED
  18. #define NOMBRES_H_INCLUDED
  19. #define CANT 100
  20. #include <iostream>
  21. #include <string.h>
  22. using namespace std;
  23. class nombrestype{
  24. public:
  25. nombrestype();
  26. nombrestype(char[CANT], char[CANT], char[CANT]);
  27. void setnombrepila(char nombre[CANT]);
  28. void setapellidopaterno(char apellido_pat[CANT]);
  29. void setapellidomaterno(char apellido_mat[CANT]);
  30. // std::string getnombrepila();
  31. // std::string getapellidopaterno();
  32. // std::string getapellidomaterno();
  33. // std::string printnombre();
  34. private:
  35. char nombrepila[CANT];
  36. char apellidopaterno[CANT];
  37. char apellidomaterno[CANT];
  38. };
  39. #endif // NOMBRES_H_INCLUDED
  40.  
  41. fragmento de main que no se como hacerle
  42. case 1:
  43. { cout<<"Ingresa nombre\t";
  44. cin>>nombre;
  45. cout<<"Ingresa apellido paterno\t";
  46. cin>>apellidopaterno;
  47. cout<<"Ingresa apellido materno\t";
  48. cin>>apellidomaterno;
  49. personas[cont].setnombre(nombre,apellidopaterno,apellidomaterno);
  50. break;
  51. }
  52. case 2:
Add Comment
Please, Sign In to add comment