Friday, January 31, 2014

Project 4

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 spill; 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); magazine ((ch != n) && actualSize <= s) { Pal[actualSize] = ch; actualSize = actualSize + 1; cin.get(ch); }// end while cringle 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] = Pa l[(actualSize-(j+1))]) { ...If you want to get a beloved 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.