Google
 
Webcprogramming.com




An Affiliate of AIHorizon




isupper()

Prototype: int isupper (int c);
Header File: ctype.h (C) or cctype (C++)
Explanation: Tests to see if the ASCII character associated with the integer c is an uppercase letter.



#include <iostream>
#include <cctype>

using namespace std;

//Example reads in a character and tests if it uppercase
int main()
{
    char x;
    cin>>x;
    if(isupper(x))
    {
        cout<<"Uppercase";
    }
    else
    {
        cout<<"Not uppercase.";
    }
}
Other Functions

-----
Interested in advertising with us?
Please read our privacy policy.
Copyright © 1997-2005 Cprogramming.com. All rights reserved.

Geodesy Designs