#include <iostream>
using std::cout;
using std::endl;
#include <cctype>
using std::iscntrl;
using std::isgraph;
using std::isprint;
using std::ispunct;
using std::isspace;
int main()
{
cout << "\nAccording to isprint:\n"
<< ( isprint( '$' ) ? "$ is a" : "$ is not a" )
<< " printing character\nAlert "
<< ( isprint( '\a' ) ? "is a" : "is not a" )
<< " printing character\nSpace "
<< ( isprint( ' ' ) ? "is a" : "is not a" )
<< " printing character\n";
return 0;
}
|