// Reversing string with built in function
// By DreamVB 23:46 13/10/2016

#include <iostream>

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

int main(int argc, char *argv[]){
	char s0[80];
	char s1[80];
	
	cout << "Enter a string and i will turn it backwards : ";
	cin >> s0;
	//Make a copy of original string
	strcpy(s1, s0);
	//Reversing the string
	strrev(s0);
	//Print out backwards string
	cout << "Here is " << s1 << " backwards " << s0 << endl;

	system("pause");
	return 0;
}