Advertisement
FoxTuGa

Student_ManagerAMS.c

Nov 16th, 2011
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.15 KB | None | 0 0
  1. /* Programa: Assessment Manager System */
  2. /* Feito por: Leandro Soares e Daniel Sousa */
  3.  
  4. #include "sourcesAMS.h"
  5. #include "admin_menuAMS.h"
  6. #include "prof_menuAMS.h"
  7. #include "aluno_menuAMS.h"
  8.  
  9. tagNotas notas[MaxNotes];
  10.  
  11. int main() {
  12.     tagUsers utilizadores[MaxUsers];
  13.     tagCursos cursos[MaxCourses];
  14.     tagDisciplinas disciplinas[MaxDiscip];
  15.     int logon_return, quantidades[4], qtds_users[2];
  16.  
  17.     // quantidades: idx[0] - Cursos
  18.     //              idx[1] - Disciplinas
  19.     //              idx[2] - Notas
  20.     //              idx[3] - Utilizadores
  21.     // qtds_users: idx[0] - Alunos
  22.     //             idx[1] - Profs
  23.  
  24.     Inicializar_Array(quantidades, 0, 4);
  25.     Inicializar_Array(qtds_users,0,2);
  26.     Inicializar_Utilizadores(utilizadores);
  27.     Inicializar_Notas(notas);
  28.  
  29.     AdminInsert(utilizadores);
  30.     quantidades[3]++;
  31.  
  32.     while(TRUE) {
  33.         logon_return = LogonMenu(utilizadores);
  34.         if(logon_return == -1) {
  35.             printf("Volte sempre !!\n\n");
  36.             PAUSA();
  37.             return 0;
  38.         }
  39.         else    if( logon_return >= 0 ) {
  40.             if( logon_return == 9 ) {
  41.                 Menu_Administracao(utilizadores,cursos,disciplinas,notas,quantidades,qtds_users);
  42.             }
  43.             else    if( logon_return == 1 ) {
  44.  
  45.             }
  46.         }
  47.         else continue;
  48.     }
  49.     return 0;
  50. }
  51.  
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement