الخميس، 6 يونيو 2013

Function Reference isgraph()

Function Reference isgraph()

Function Reference
isgraph()Prototype: int isgraph(int Char);
Header File: ctype.h (C) or cctype (C++)
Explanation: Checks whether the character is printable, and returns true if it is with the exception of the space, which it will return false for. 



#include &tl;iostream>#include &tl;cctype>using namespace std;//Example reads in a character and tests if it punctuationint main(){ char x; cin>>x; if(isspunct(x)) { cout<<"Punctuation"; } else { cout<<"Not punctuation."; }}


الملفات المرفقة الملفات المرفقة

ليست هناك تعليقات:

إرسال تعليق