Advertisement
Trollkemada

Untitled

May 6th, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.01 KB | None | 0 0
  1. void listarAlumnosNota(tasignatura &a)
  2. {
  3.      tasignatura copia;
  4.      if (asignaturaSinAlumnos(a))
  5.      {
  6.                                  cout<<endl<<"La asignatura no tiene alumnos"<<endl<<endl;
  7.      }
  8.      else
  9.      {
  10.               copiar(a,copia);                              
  11.               cout<<"Alumnos:"<<endl<<"---------------------------";
  12.               listarRec(a);
  13.               cout<<endl<<"---------------------------"<<endl;
  14.               copiar(copia,a);
  15.      }
  16. }
  17.  
  18. void listarRec(tasignatura &a)
  19. {
  20.      talumno alumno;
  21.      char nombre_alumno[50];
  22.      if (!asignaturaSinAlumnos(a))
  23.      {
  24.                                   alumno=maximaNota(a);
  25.                                   nombre(alumno,nombre_alumno);
  26.                                   eliminar(a,nombre_alumno);
  27.                                   listarRec(a);
  28.                                   cout<<endl<<nombre_alumno<<"\t Nota: "<<nota(alumno);
  29.      }
  30.                                                                  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement