博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
c 判断一个字符是否为空格
阅读量:4673 次
发布时间:2019-06-09

本文共 337 字,大约阅读时间需要 1 分钟。

 

#include 
#include
int main (){ wchar_t c; int i=0; wchar_t str[] = L"Example sentence to test iswblank\n"; while (str[i]) { c = str[i]; if (iswblank(c)) c = L'\n'; putwchar (c); i++; } return 0;}

输出

Examplesentencetotestiswblank

 

转载于:https://www.cnblogs.com/sea-stream/p/10822832.html

你可能感兴趣的文章