Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <fstream>
- #define a 100
- #define b 100
- #define c 100
- typedef struct elenco{
- char nome[a];
- char cognome[b];
- int eta[c];
- } ;
- using namespace std;
- int main(int argc, char *argv[])
- {
- elenco elenco;
- char i;
- char riemp;
- fstream f;
- f.open("testo.txt", ios::in);
- for (i=0;i<EOF;i++;)
- f>>elenco.nome[a];
- f>>elenco.cognome[b];
- f>>elenco.eta[c];
- }
- f.close();
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Add Comment
Please, Sign In to add comment