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 downslope; 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); fourth dimension ((ch != n) && actualSize <= s) { Pal[actualSize] = ch; actualSize = actualSize + 1; cin.
get(ch); }// end while closed circuit 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 in force(p) essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.