Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void preenchevetor(int tam)
- {
- int i,*vetor;
- for(i=0;i<tam-1;i++)
- {
- vetor=(T_Aluno*)malloc(tam*sizeof(T_Aluno);
- scanf("%s",vetor[i]->nome);
- scanf("%d",vetor[i]->idade;
- scanf("%f",vetor[i]->altura;
- scanf("%f",vetor[i]->peso;
- }
- }
- int main()
- {
- T_Aluno vetor;
- Vetor=(alocavetor(*vetor));
- preenchevetor(tam);
- system("pause");
- return 0;
Add Comment
Please, Sign In to add comment