Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- using namespace std;
- ifstream in("input.txt");
- ofstream out("output.txt");
- int main()
- {
- int k;
- in >> k;
- in.get();
- string s, g;
- while (getline(in, s)) {
- char f = s[k - 1];
- g += f;
- }
- out << g;
- }
- //2
- //империя
- //воз
- //арктангенс
- //еж
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement