Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Interesting:
- int main() {
- char sym = 64;
- cout << string(3, sym) + 'B'; //character concatenation
- }
- */
- #include <iostream>
- #include <string>
- #include <vector>
- using namespace std;
- int main() {
- std::vector<char>ch;
- for (int i = 0; i < 5; ++i) {
- string word;
- std::cin >> word;
- ch.push_back(word[0]);
- }
- for (const auto& l : ch) {
- cout << l;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement