Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <Windows.h>
- using namespace std;
- void main()
- {
- SetConsoleCP(1251);
- string resumeTemplate[5]{ "Имя: ", "Фамилия: ", "Отчество: ", "Возвраст: ", "Образование: " };
- string input;
- cout << "Enter name: ";
- cin >> input;
- resumeTemplate[0] += input;
- cout << "Enter surname: ";
- cin >> input;
- resumeTemplate[1] += input;
- cout << "Enter midname: ";
- cin >> input;
- resumeTemplate[2] += input;
- cout << "Enter age: ";
- cin >> input;
- resumeTemplate[3] += input;
- cout << "Enter education: ";
- cin >> input;
- resumeTemplate[4] += input;
- ofstream file("resume.txt");
- for (auto& temp : resumeTemplate)
- {
- file << temp << endl;
- }
- file.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement