Guest User

Untitled

a guest
Jun 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. void preenchevetor(int tam)
  2. {
  3.              
  4. int i,*vetor;
  5.         for(i=0;i<tam-1;i++)
  6.         {
  7.                             vetor=(T_Aluno*)malloc(tam*sizeof(T_Aluno);
  8.                             scanf("%s",vetor[i]->nome);
  9.                             scanf("%d",vetor[i]->idade;
  10.                             scanf("%f",vetor[i]->altura;
  11.                             scanf("%f",vetor[i]->peso;
  12.                            
  13.         }
  14. }
  15.                            
  16.         int main()
  17.         {
  18.             T_Aluno vetor;
  19.             Vetor=(alocavetor(*vetor));
  20.             preenchevetor(tam);
  21.             system("pause");
  22.             return 0;
Add Comment
Please, Sign In to add comment