-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrite.c
45 lines (43 loc) · 796 Bytes
/
write.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "sis.h"
#include "write.h"
#include "stdio.h"
#include "stdlib.h"
#include "locale.h"
#include "unistd.h"
#include "ctype.h"
#include "string.h"
#define NM 25
/*
* veja mais em
* https://github.com/rafatrinity
*/
void escreva(int a){
setlocale(LC_ALL,"portuguesse");
cab();
switch(a){
case 1:
printf("\to arquivo não pode ser aberto\n");
sleep(2);
break;
case 2:
printf("\tOPÇÃO INVALIDA\n");
sleep(2);
break;
case 3:
fim();
break;
case 4:
printf("\tVERIFIQUE O NOME DIGITADO E TENTE NOVAMENTE!\n");
linha();
break;
case 5:
printf("a matricula gerada ja foi cadastrada anteriormente, tente novamente\n");
break;
case 6:
printf("\tnão temos aniversariantes esse mês :(\n");
break;
case 7:
printf("CR INVALIDO\n");
break;
}
}