ДАЮ 100 БАЛЛОВ!!!
Програмированние, объясните весь код полностью на c++

#include
#include

using namespace std;

int main() {
string query;
getline(cin, query);

string word;
for (int i = 0; i < query.size(); ++i) {
if (query[i] == ' ') {
cout << '[' << word << ']' << endl;
word = ""s;
}
else {
word += query[i];
}
}
cout << '[' << word << ']' << endl;
}
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2025 SCHOLAR.TIPS - All rights reserved.