String []

설명

String의 개별 문자에 접근하는 것을 허용.

문법

char thisChar = myString1[n]

매개변수

  • char thisChar - 문자 변수
  • myString1 - String 변수
  • int n - 숫자 변수

반환값

  • String의 n번째 char. Same as charAt().
  • 스트링의 n번째 문자. charAt()와 같음.

※ 주의 및 경고:

If the string is modified, it is highly recommended using String.reserve() to prevent the memory fragmentation issue

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