Guest User

Untitled

a guest
Jun 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <fstream>
  4. #define a 100
  5. #define b 100
  6. #define c 100
  7. typedef struct elenco{
  8. char nome[a];
  9. char cognome[b];
  10. int eta[c];
  11. } ;
  12. using namespace std;
  13.  
  14.  
  15. int main(int argc, char *argv[])
  16. {
  17. elenco elenco;
  18. char i;
  19. char riemp;
  20. fstream f;
  21. f.open("testo.txt", ios::in);
  22.  
  23. for (i=0;i<EOF;i++;)
  24. f>>elenco.nome[a];
  25. f>>elenco.cognome[b];
  26. f>>elenco.eta[c];
  27. }
  28.  
  29. f.close();
  30.  
  31. system("PAUSE");
  32. return EXIT_SUCCESS;
  33. }
Add Comment
Please, Sign In to add comment