// Reversing a C++ string
// By DreamVB 00:24 19/10/2016

#include <iostream>
#include <string>

using namespace std;
using std::cout;
using std::endl;

int main(int argc, char *argv[]){
	string sInput = "";
	cout << "Enter a string and i will turn it backwards : ";
	std::getline(cin, sInput);
	//Reverse the string.
	std::reverse(sInput.begin(), sInput.end());
	cout << endl;
	//Print out backwards string
	cout << "Here is the string backwards : " << sInput.c_str() << endl;

	system("pause");
	return 0;
}