isPunct()

설명

문자가 구두점인지(즉 쉼표, 세미콜론, 느낌표 등)인지 분석합니다. thisChar가 구두점이면 true를 반환.

문법

isPunct(thisChar)

매개변수

  • thisChar: 변수. 허용되는 자료형: char

반환값

  • thisChar가 구두점이라면 true를, 아니라면 false를 반환합니다.

예제 코드

if (isPunct(myChar)) { // tests if myChar is a punctuation character Serial.println("The character is a punctuation"); } else { Serial.println("The character is not a punctuation"); }

더보기

ARDUINO BUY RECOMMENDATION

Arduino UNO R3
Arduino Starter Kit
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.

※ OUR MESSAGES