#include <stdio.h>
#include <wctype.h>
int main ()
{
  int i;
  wchar_t str[] = L"c3po...";
  i=0;
  while (iswalnum(str[i])){ 
      i++;
  } 
  wprintf (L"The first %d characters are alphanumeric.\n",i);
  return 0;
}

输出

The first 4 characters are alphanumeric.

 

相关文章:

  • 2022-12-23
  • 2021-11-12
  • 2022-01-28
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-03
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
相关资源
相似解决方案