Project 4 //Description: This takes the users input, and will tell if its a Palindrome. #include <iostream.h> int const SIZE = 50; int ReadLine(char Pal[], int s); void PrintResults(char Pal[], int s, int actualSize); void main() { int dec; char A[SIZE]; line = ReadLine(A, SIZE); PrintResults(A, SIZE, line); } int ReadLine(char Pal[], int s) { char ch; int actualSize = 0; cout<<"Input: "; cin.get(ch); beat ((ch != n) && actualSize <= s) { Pal[actualSize] = ch; actualSize = actualSize + 1; cin.
get(ch); }// end while eyehole return(actualSize); }//end ReadLine void PrintResults(char Pal[],int s, int actualSize) { for(int k=0; k<actualSize; k++) { cout<<endl<<endl; cout<<Pal[k]<<endl; int j = 0; if(Pal[j] = Pal[(actualSize-(j+1))]) { ...If you want to get a high-priced essay, order it on our website: OrderCustomPaper.com
If you want to get a full essay, visit our page: write my paper
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.