Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. struct series{
  2. string nombre;
  3. char tematica[15];
  4. int estreno;
  5. };
  6.  
  7. struct fans{
  8. string nombre;
  9. string direccion;
  10. string sexo;
  11. int nacimiento;
  12. struct series seriesTV[10];
  13. }f[10000];
  14.  
  15. int main(){
  16. do{
  17. cout<<"Cuantas serie sigue? "; cin>>n;
  18. }while( n <= 0 || n > 10);
  19. cin.ignore();
  20.  
  21. while(cont != n){
  22. cout<<cont+1<<". Digite el nombre de la serie: "; cin>>f[i].seriesTV[cont].nombre;
  23. cin.ignore();
  24. cont++;
  25. }
  26.  
  27. system("pause");
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement