introducao_c_camillo_pucpr
136 pág.

introducao_c_camillo_pucpr


DisciplinaAlgoritmos e Estrutura de Dados I702 materiais7.920 seguidores
Pré-visualização31 páginas
___________________________________________________________
___________________________________________________________
___________________________________________________________
_________________________________________________ __________
___________________________________________________________
___________________________________________________________
___________________________________________________________
TRIANGULO_1, definido por um conjunto de três pontos.
_____ ______________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_________________ __________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_____________________________ ______________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_________________________________________ __________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_____________________________________________________ ______
___________________________________________________________
___________________________________________________________
Aspectos Formais da Computação - linguagem C
Prof. Camillo Oliveira
pág. 47
TRIANGULO_2, definido por três pontos.
___________________________________________________________
______________________ _____________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
__________________________________ _________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
______________________________________________ _____________
___________________________________________________________
___________________________________________________________
___________________________________________________________
__________________________________________________________ _
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_________ __________________________________________________
___________________________________________________________
QUADRILATERO_1, definido por um conjunto de quatro pontos.
___________________________________________________________
_____________________ ______________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_________________________________ __________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_____________________________________________ ______________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_________________________________________________________ __
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
________ ___________________________________________________
___________________________________________________________
Aspectos Formais da Computação - linguagem C
Prof. Camillo Oliveira
pág. 48
QUADRILATERO_2, definido por quatro pontos.
___________________________________________________________
___________________________________ ________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_______________________________________________ ____________
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
__________ _________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
______________________ _____________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
__________________________________ _________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
______________________________________________ _____________
___________________________________________________________
___________________________________________________________
___________________________________________________________
__________________________________________________________ _
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_________ __________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_____________________ ______________________________________
___________________________________________________________
Aspectos Formais da Computação - linguagem C
Prof. Camillo Oliveira
pág. 49
6. Um ponto no espaço R3 , pode ser representado por uma trinca de números pertencentes ao conjunto dos
números reais e que formam uma trinca ordenada ( , , )x y z . Um cubo reto pode ser definido por oito pontos
em R3 e também pode ser definido por um conjunto de oito pontos. Defina os tipos PONTO, CUBO_1 e
CUBO_2, estes dois últimos em função de PONTO. Declare duas variáveis do tipo CUBO_1 e CUBO_2,
respectivamente e inicialize-os com os seguintes valores dos vértices: (0,0,0), (4,0,0), (4,4,0), (0,4,0), (0,0,4),
(4,0,4), (4,4,4), (0,4,4).
___________________________________________________________
___ ________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_______________ ____________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________ ________________________________
___________________________________________________________