Advertisement
Trollkemada

Untitled

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