A
adrian suri
HI
does anyone know of a quike way to reverse an stl string
#include <Iostream>
using namespace std;
#include<string>
#include<cstdlib> // includes clearscreen function exit etc
string firstName;
cout<< "Please enter your first name" <<endl;
cin>>firstName;
firstnameLeng=firstName.size();
firstName.reverse() // does not work
adrian
does anyone know of a quike way to reverse an stl string
#include <Iostream>
using namespace std;
#include<string>
#include<cstdlib> // includes clearscreen function exit etc
string firstName;
cout<< "Please enter your first name" <<endl;
cin>>firstName;
firstnameLeng=firstName.size();
firstName.reverse() // does not work
adrian