code snippets(一):ispunct(參數),判斷是否為顯示字元,不包含空白、字母、數字字元。

#include "stdafx.h"
#include 
#include 
#include 
#include 

int main(int argc, char *argv[])
{
//ispunct(參數)
//參數:是否為顯示字元,不包含空白、字母、數字字元,條件成立,回傳非 0 值,否則回傳 0。
// if parameter is any below values.
//! " # % & ' ( ) ; < = >> ? 
//[ \ ] * + , - . / : _ { } 
if(ispunct('%'))
{
printf("參數非包含空白、字母、數字字元\n");
}
else
{
printf("參數是包含空白、字母、數字字元\n");
}
return 0;
}
//Answer:參數非包含空白、字母、數字字元
文章標籤
全站熱搜
創作者介紹
創作者 mitblog 的頭像
mitblog

香腸炒章魚

mitblog 發表在 痞客邦 留言(0) 人氣(104)