CS string and string class

Jun 2, 2016 at 12:34am
help i dont how to make this
Palindrom and anagram



#include<iostream>
#include<iomanip>
#include<cstring>
#include<algorithm>
#include<cstdlib>
using namespace std;
#include<conio.h>
#include<windows.h>
string sort(string str);//reaaranging the orders of string to test if its anagram
bool areAnagrams(string str1,string str2);//process the strgin if anagram anf returns the value 1 or 0
string RemSpacePunct(string str);//function that removes space and punctation in aa string
////////////////////////////////
void palindrome(char sal[120]);//testing whether the c-string value is palindrome or not
void password();//asking the user to enter the password
char menu();//displaying choices a,b, and c then returns the answer
void quit();//asking the user if he/she wants to quit
string EnterPassword();//processing if the password is correct and diplaying it with "*" sign

int main()
{
char let,ans;

//add code here

switch(ans)
{

//add code here



}

do{
cout<<"Do you want to try again [y/n]"<<endl
<<"Choice: ";
cin>>let;
let=tolower(let);
}while(let!='n'&&let!='y');

//add code here

system("pause");
return 0;
}//end main
//////////////////////////////////////////////////////
void quit()
{
//add code here


}

///////////////////////
string EnterPassword()
{
//add code here


return password;

}

////////////////////////////////////////////////////
char menu()
{

//add code here

return choice;


}


//////////////////////////////////
void password()
{
//add code here
}

////////////////////////////////////////////////////////////////
string sort(string str)
{
//add code here

}
//////////////////////////////
bool areAnagrams(string str1,string str2)
{
//add code here
}
//////////////////////////////
string RemSpacePunct(string str)
{
//add code here
}
///////////////////////////////
void palindrome(char sal[120])
{
//add code here
}
Last edited on Jun 2, 2016 at 1:44am
Topic archived. No new replies allowed.