Ответы на вопрос:
#include <iostream>
#include <string>
#include <windows.h> // Для ввода русских слов
using namespace std;
int main() {
setlocale(0, "RU");
SetConsoleOutputCP(1251);
SetConsoleCP(1251);
string text;
getline(cin, text);
cout << text[0];
for (int i = 0; i < text.length(); i++) {
if (text[i] == ' ') {
cout << text[i + 1];
}
}
return 0;
}
Популярно: Информатика
-
gnastasiya509.01.2023 21:14
-
Isa2222207.03.2021 06:30
-
DmaExectionSDK14.09.2022 10:31
-
123maladauskas03.09.2021 15:13
-
anna451308.01.2022 17:50
-
mandish0202.05.2021 21:39
-
Andreichik22820.09.2020 04:18
-
маша939310.07.2022 01:50
-
anyta00616.12.2021 15:33
-
MisterStickman125.05.2020 13:52