Advertisement
josiftepe

Untitled

Apr 19th, 2022
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <fstream>
  2. using namespace std;
  3.  
  4. int main() {
  5. ifstream fin("in.txt");
  6. ofstream fout("out.txt");
  7. string ime[5];
  8. int klas[5];
  9. double uspeh[5];
  10. for(int i = 0; i < 5; i++) {
  11. fin >> ime[i] >> klas[i] >> uspeh[i];
  12. }
  13. for(int i = 0; i < 5; i++) {
  14. fout << ime[i] << " " << klas[i] << " " << uspeh[i] << endl;
  15. }
  16.  
  17. return 0;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement