close
如果是空白字元,傳回非零值,否則為零。
#include <iostream>
#include <string>
using namespace std;
//-----------------------
int main()
{
char b = ' ' ;
char ch = '9' ;
cout << isspace(b) << endl ;
cout << isspace(ch) << endl ;
system("pause");
return 0;
}
執行結果
全站熱搜