我只需要计算字符串中的句点 (.)。为此,我使用库ispunct中的函数ctype.h。我不想计算逗号 (,),也不想计算感叹号 (!)。
ispunct
ctype.h
我怎样才能只计算一个周期?
当我使用ispunctctype 库中的函数时,我的程序会计算句点 (.)、逗号 (,) 和感叹号。
c c-strings counting char
c ×1
c-strings ×1
char ×1
counting ×1