Skip to content

Conversation

@MaksymKobzystyi
Copy link
Collaborator

No description provided.

cout << "Input string to reverse:" << endl;
getline(cin, input);
reverse(input.begin(), input.end());
cout << "Reverced string: " << endl << input << endl;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ну да это очень просто)
но смысл задания не в том чтобы использовать готовые функции со стандартной библиотеки и использовать готовый класс для работы со строками,
а написать

const char* str[] = "....";

и написать цикл который перевернет символы в массивы строк, т.е. реверс переменной str

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants