#include <stdio.h>
#include <stdlib.h>
int i;
typedef struct{
// variables primitivas
int edad;
char nombre[30];
char apellido[30];
int legajo;
char sexo[10];
int Nota1;
int Nota2;
}Alumno;
int numAlum;
int main() {
Alumno vec[numAlum];
printf("ingrese el numero de alumnos: ");
scanf("%d", &numAlum);
Alumno listado[numAlum];
carga(vec);
return 0;
}
void carga(Alumno vec[numAlum])
{
for(i=0; i<numAlum; i++) {
system("cls");
printf("Alumno %d" , i+1);
fflush(stdin);
printf("\n Edad del alumno: ");
scanf("%d", &vec[i].edad);
fflush(stdin);
printf("\n Nombre del alumno: ");
fgets(vec[i].nombre,sizeof(vec[i].nombre),stdin);
fflush(stdin);
printf("\n Apellido del alumno: ");
fgets(vec[i].apellido, sizeof(vec[i].apellido), stdin);
fflush(stdin);
printf("\n Ingrese el legajo: ");
scanf("%d", &vec[i].legajo);
getchar();
fflush(stdin);
printf("\n Sexo del alumno: ");
fgets(vec[i].sexo, sizeof(vec[i].sexo), stdin);
getchar();
fflush(stdin);
printf("\n Ingrese la nota del primer parcial: ");
scanf("%d", &vec[i].Nota1);
fflush(stdin);
printf("\n Ingrese la nota del segundo parcial: ");
scanf("%d", &vec[i].Nota2);
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}