Insertar Notas en un archivo.txt

download Insertar Notas en un archivo.txt

of 3

description

estructura de datos 2, insertar notas en un archivo.txt. con listas enlazadas

Transcript of Insertar Notas en un archivo.txt

  • 7/17/2019 Insertar Notas en un archivo.txt

    1/3

    #include #include #include #include#include

    using namespace std;

    typedef struct lista {

    char nombre[20]; int nota1; int nota2; int nota3;

    int notafinal; lista *sig;};

    lista *ptr=NULL, *r,*p,*j;string cadena;FILE *fd;int menu(void);void insertarNota();

    void Mostrar ();void guardar(lista *ptr);int main(int argc, char*argv[]){ system ("CLS");

    int sw=1, i, j;

    do{ switch (menu()){ case 1: insertarNota(); break;

    case 2: Mostrar (); break;

    case 3: system ("CLS"); cout

  • 7/17/2019 Insertar Notas en un archivo.txt

    2/3

    system("CLS");system ("color 2F");cout

  • 7/17/2019 Insertar Notas en un archivo.txt

    3/3

    coutp->nota3;archivo