我想找...

搜尋

分享

目錄

String

[Data Types]

描述

The String class allows you to use and manipulate strings of text in more complex ways than character arrays do. You can concatenate Strings, append to them, search for and replace substrings, and more. It takes more memory than a simple character array, but it is also more useful.

For reference, character arrays are referred to as strings with a small s, and instances of the String class are referred to as Strings with a capital S. Note that constant strings, specified in “double quotes” are treated as char arrays, not instances of the String class.

Functions

Operators

  • [程式語法] [] (element access)
  • [程式語法] (concatenation)
  • [程式語法] == (comparison)

範例

The following are examples of the String class from the Arduino Tutorial that can work on the 86Duino boards:

參考


語法參考主頁面

86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。

發表評論

上部へスクロール