#include <stdio.h>
int main ( ) {
int opcao;
printf ( "Bem Vindo ! \n O que deseja fazer ? \n 1 - Se cadastrar \n 2 - Reservar um lugar \n " ) ; if ( opcao == 1 ) {
int tipoPessoa;
printf ( "Você é: \n 1 - Professor \n 2 - Aluno \n 3 - Convidado \n 4 - Portador de necessidade especial \n " ) ; scanf ( "%d" , & tipoPessoa
) ; switch ( tipoPessoa) {
case 1 : {
char nomePessoa[ 31 ] , rgPessoa[ 10 ] , emailPessoa[ 65 ] ;
printf ( "Informe seu nome completo: " ) ; scanf ( "%30s" , nomePessoa
) ; printf ( "Informe seu E-mail: " ) ; scanf ( "%64s" , emailPessoa
) ; }
}
}
}
//https://pt.stackoverflow.com/q/337905/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbiAoKSB7CglpbnQgb3BjYW87CglwcmludGYoIkJlbSBWaW5kbyAhIFxuIE8gcXVlIGRlc2VqYSBmYXplciA/IFxuIDEgLSBTZSBjYWRhc3RyYXIgXG4gMiAtIFJlc2VydmFyIHVtIGx1Z2FyIFxuIik7CglzY2FuZigiJWQiLCAmb3BjYW8pOwoJaWYgKG9wY2FvID09IDEpIHsKCQlpbnQgdGlwb1Blc3NvYTsKCQlwcmludGYoIlZvY8OqIMOpOiBcbiAxIC0gUHJvZmVzc29yIFxuIDIgLSBBbHVubyBcbiAzIC0gQ29udmlkYWRvIFxuIDQgLSBQb3J0YWRvciBkZSBuZWNlc3NpZGFkZSBlc3BlY2lhbCBcbiIpOwoJCXNjYW5mKCIlZCIsICZ0aXBvUGVzc29hKTsKCQlzd2l0Y2godGlwb1Blc3NvYSkgewoJCQljYXNlIDE6IHsKCQkJCWNoYXIgbm9tZVBlc3NvYVszMV0sIHJnUGVzc29hWzEwXSwgZW1haWxQZXNzb2FbNjVdOwoJCQkJcHJpbnRmKCJJbmZvcm1lIHNldSBub21lIGNvbXBsZXRvOiAiKTsKCQkJCXNjYW5mKCIlMzBzIiwgbm9tZVBlc3NvYSk7CgkJCQlwcmludGYoIkluZm9ybWUgc2V1IFJHOiAiKTsKCQkJCXNjYW5mKCIlOXMiLCByZ1Blc3NvYSk7CgkJCQlwcmludGYoIkluZm9ybWUgc2V1IEUtbWFpbDogIik7CgkJCQlzY2FuZigiJTY0cyIsIGVtYWlsUGVzc29hKTsKCQkJfQoJCX0JCQoJfQp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8zMzc5MDUvMTAx