How to do sort string function ? if so please help !
#include <algorithm>
#include<ctime>
#include <iostream>
#include <fstream>
#include <string>
#include <stdlib.h> // needed for exit() function
using namespace std;
string sortedForm( string word );
int main ( int argc, char **argv)
{
string word;
cout << " Enter a word: ";
cin >> word;
cout << "Forted form of " << word << " is " << sortedForm( word ) << endl;
return 0;