Write a C++ function that has an input of a char value and returns true if the character is lower case or false otherwise.
I am having problem with this, cananyone guide me.
the following is what I have, I guess I'm confused.
#include <iostream>
#include <cmath>
#include <cctype>
using namespace std;
int checkCase(char x)
{
if
cout << islower (x);
return x;
}
int main ()
{
char ch;
cout << "Enter a character to see if it is lower case:" << endl;
cin >> ch;
checkCase (ch);
cout << "Character "<< ch << " is lower case." <<endl;
//The next two lines stop the Command Prompt window from closing
//until the user presses a key, including Enter.
//cout << "\n\nPress any key to exit." << endl;