piriwin84 Posted December 9, 2010 Report Share Posted December 9, 2010 Hola a todos quisiera saber si alguien me puede ayudar a finalizar mi trabajo ya que lo necesito, necesito realizar un control de notas que realize un ingreso de alumnos con sus notas respectivas y que me muestre un promedio, que se guarde en un archivo y que pueda realizar una busqueda y mostrar la lista creada !! de antemano muchas gracias aqui voy a dejar lo que llevo avanzado #include <stdio.h> #include <iostream> #include <string.h> struct datos {char nombre [50]; char apellido [50]; char grado [50]; char nota_tipo; float nota; struct datos; }alumno [50]; void main() {int i,n; char aprobado; char reprobado; void leerentrada(int i); void escribirsalida(int i); printf(" SISTEMA DE CONTROL DE NOTAS \n\n"); for(i=0;i<n;++i) {leerentrada (i); if( alumno .nota>=60)alumno.nota_tipo=aprobado; else alumno.nota_tipo=reprobado; void leerentrada(int i) {printf("\n alumno.%d\n", i+1); printf("nombre: "); printf("% [^\n]", alumno.nombre); printf(" apellido: "); printf(" %[\n]", alumno.nota_tipo); printf("nota actual: "); return; }void escribirentrada[int i]; { printf("\n nombre: %s, alumno.nombre); printf(" apellido: %s \n,alumno.apellido); printf(" grado: %s\n\n,alumno.grado); printf(" nota actual: %2.2f", alumno.exam); switch (alumno.tipo_nota) { case ;printf(" APROBADO \n\n");break; case ;printf(" REPROBADO \n\n");break; default : printf(" ERROR \n\n"); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now