C++ program string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

C++ program string

Hi guys I have a problem. I want to create something like that: "apple" --> "elppa" How can I do that , using string variable as input for the string to turn , and using Also Only pointers Thanks

25th Apr 2021, 4:32 PM
Hammad Yaqub
Hammad Yaqub - avatar
3 Answers
+ 3
well. I don't think it's mostly a good idea to reinvent the wheel. there's already a STL function called std::reverse.
25th Apr 2021, 4:52 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 1
You have completed your C++ course more then half. And you can't even do that. Are you guys really learning programming or what ? I'm really surprised and you are not the only one here like this
25th Apr 2021, 7:01 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
0
std::reverse
26th Apr 2021, 3:22 AM
Isabella
Isabella - avatar