- 1

В символьной строке поменять местами первый элемент и последний

написать очень просто и понятливо для чайника

27th Dec 2017, 1:46 PM
Иван
1 Resposta
0
#include <iostream> using namespace std; int main() { string s = "hello"; int c = 0; while(s[c++]){} char t = s[0]; s[0] = s[c-2]; s[c-2] = t; cout << s; return 0; }
27th Feb 2018, 10:15 AM
Юрий Исаев
Юрий Исаев - avatar
Quente hoje
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
FRC Coding?
1 Votes
Quiz duel
0 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes