Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- using namespace std;
- int main() {
- ifstream fin("in.txt");
- ofstream fout("out.txt");
- string ime[5];
- int klas[5];
- double uspeh[5];
- for(int i = 0; i < 5; i++) {
- fin >> ime[i] >> klas[i] >> uspeh[i];
- }
- for(int i = 0; i < 5; i++) {
- fout << ime[i] << " " << klas[i] << " " << uspeh[i] << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement