Practica Estudiante Pro. Orientada Esime Zacatenco.
Enviado por Miguel Altamirano • 21 de Septiembre de 2016 • Prácticas o problemas • 656 Palabras (3 Páginas) • 285 Visitas
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
struct Estudiante
{
string Nombre;
string Boleta;
int NC;
double *ApCal;
};
void Leer(Estudiante *ApE);
void Imprimir(const Estudiante *ApE);
double CalProm(const Estudiante *ApE);
int main (void)
{
Estudiante *E;
int NE;
do
{
cout<<"Ingresa el Numero de estudiantes: ";
cin>>NE;
}while(NE<=0);
E = new Estudiante[NE];
for(int i=0;i<NE;i++)
{
Leer(E+i);
}//fin de for leer
for(int i=0;i<NE;i++)
{
Imprimir(E+i);
}//fin de for Imprimir
delete []E;
system("pause");
return 1;
} //Fin de Main
void Leer(Estudiante *ApE)
{
static int K=1;
cout<<endl<<"Datos del Estudiante "<<K++<<" : "<<endl<<endl;
cout<<"Ingrese el Nombre : ";
fflush(stdin);
getline(cin,ApE->Nombre);
cout<<"Ingresa la Boleta : ";
getline(cin,ApE->Boleta);
do
{
cout<<"Cuantas
...