working on the backwards String and i can't get it to print correctly plz help
#include <iostream>
using namespace std;
void backward(char *); // Function prototype
int main()
{
const int SIZE = 11; // Array size
char string[SIZE]; // To hold a string
// Ask the user to enter a string.
cout << "Enter a string (up to 10 characters) ";
cout << "and I will reverse it: ";
cin.getline(string, SIZE);
// Display the number of characters in the string.
cout << "Written backward, your string is: ";
backward(string);
return 0;
}
//*****************************
// Definition of stringLength.*
//*****************************
void backward(char * strPtr)
{
const int SIZE = 11;
int count; // Loop counter
for(count = SIZE; count >= 0; count--);
{
cout << strPtr[count] << endl;
}
}