CAS Community   >   Resources   >  

no image
How to reverse a string value in C++

Function that reverses a string value

Phil Gardner

Created by Phil Gardner
last edited Jan 21 2018 by Phil Gardner


Saw a resource by Aaron Connor that shows how to do this in Python. Compare and contrast using this.

Lots of comment/criticisms on CAS/elsewhere suggest that C++ is “difficult” or even “dangerous”. It’s neither - take a look…

Level: intermediate

Teaches: character operations, iteration, function parameters and return values.

Source-code and instructions to compile and run on Raspberry Pi: https://program-using-gnu-cpp.blogspot.co.uk/2017/05/reversing-text-using-function.html

Feedback and Comments


Available when logged in (join via the front page, for free):
  • View 0 comments on this resource.
  • View resource history, links to related resources.
  • Leave feedback for the author(s), or help by editing the resource.
Categories: