#include
using std::cout;
using std::endl;
#include
using std::iscntrl;
using std::isgraph;
using std::isprint;
using std::ispunct;
using std::isspace;
int main()
{
cout << "\nAccording to iscntrl:\nNewline "
<< ( iscntrl( '\n' ) ? "is a" : "is not a" )
<< " control character\n"
<< ( iscntrl( '$' ) ? "$ is a" : "$ is not a" )
<< " control character\n";
return 0;
}
According to iscntrl:
Newline is a control character
$ is not a control character