国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

ispunct

2018-11-11 15:18 更新

 原型:extern int ispunct(int c);
 
 用法:#include <ctype.h>
 
 功能:判斷字符c是否為標(biāo)點(diǎn)符號(hào)
 
 說明:當(dāng)c為標(biāo)點(diǎn)符號(hào)時(shí),返回非零值,否則返回零。
    標(biāo)點(diǎn)符號(hào)指那些既不是字母數(shù)字,也不是空格的可打印字符。
 
 舉例:


     // ispunct.c
     
     #include <syslib.h>
     #include <ctype.h>
     #include <string.h>
     main()
     {
       char s[]="Hello, Rain!";
       int i;
       
       clrscr();        // clear screen
       printf("%s\n",s);
       for(i=0;i<strlen(s);i++)
       {
         if(ispunct(s[i])) printf("^");
         else printf(".");
       }
       
       
       getchar();
       return 0;
     }


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)