Translations of this page?:

isdigit

文法:

    #include <cctype>
    int isdigit( int 文字 );

isdigit()関数は、引数が0から9の数字の場合にはゼロ以外の値を、それ以外の文字の場合にはゼロを返します。

     char c;
     scanf( "%c", &c );
     if( isdigit(c) )
       printf( "入力された文字 %c は数字です。\n", c );

関連トピック: isalnum, isalpha, iscntrl, isgraph, isprint, ispunct, isspace, isxdigit

 
• • • SitemapRecent changesRSScc