Loading...

Tutorial.StringAppendOperator History

Hide minor edits - Show changes to markup

May 02, 2012, at 10:01 AM by Scott Fitzgerald -
Changed line 45 from:

(:source http://github.com/arduino/Arduino/raw/master/build/shared/examples/8.Strings/StringAppendOperator/StringAppendOperator.ino lang=arduino tabwidth=4:)

to:

(:source http://github.com/arduino/Arduino/raw/master/build/shared/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino lang=arduino tabwidth=4:)

November 15, 2011, at 10:25 PM by Scott Fitzgerald -
Changed line 45 from:

(:source http://github.com/arduino/Arduino/raw/master/build/shared/examples/8.Strings/StringAppendOperator/StringAppendOperator.pde lang=arduino tabwidth=4:)

to:

(:source http://github.com/arduino/Arduino/raw/master/build/shared/examples/8.Strings/StringAppendOperator/StringAppendOperator.ino lang=arduino tabwidth=4:)

October 29, 2010, at 03:33 PM by Tom Igoe -
Added lines 24-25:

(:divend:)

Changed lines 28-29 from:
 (:divend:)
to:
September 19, 2010, at 05:11 PM by Christian Cerrito -
Changed line 29 from:

Hardware Required

to:
Added lines 61-62:
September 19, 2010, at 05:11 PM by Christian Cerrito -
Changed lines 24-27 from:

In both cases, stringOne equals "A long integer: 123456789".

(:divend:)

to:

In both cases, stringOne equals "A long integer: 123456789". Like the + operator, these operators are handy for assembling longer strings from a combination of data objects.

 (:divend:)
Changed lines 30-34 from:

No external hardware is required. (:divend:)

Like the + operator, these operators are handy for assembling longer strings from a combination of data objects.

to:

Hardware Required:

  • Arduino Board
Deleted line 34:
Changed lines 36-39 from:

There is no circuit for this example. (:divend:)

to:

There is no circuit for this example, though your Arduino must be connected to your computer via USB.

image developed using Fritzing. For more circuit examples, see the Fritzing project page

September 16, 2010, at 04:32 PM by Tom Igoe -
Changed line 8 from:

[@

to:

(:source lang=arduino tabwidth=4:)

Changed lines 13-14 from:

@]

to:

(:sourceend:)

Changed line 17 from:

[@

to:

(:source lang=arduino tabwidth=4:)

Changed lines 22-23 from:

@]

to:

(:sourceend:)

Changed line 45 from:
 (:source http://github.com/arduino/Arduino/raw/master/build/shared/examples/8.Strings/StringAppendOperator/StringAppendOperator.pde lang=arduino  tabwidth=4:)
to:

(:source http://github.com/arduino/Arduino/raw/master/build/shared/examples/8.Strings/StringAppendOperator/StringAppendOperator.pde lang=arduino tabwidth=4:)

August 14, 2010, at 05:27 PM by Christian Cerrito -
August 14, 2010, at 05:22 PM by Christian Cerrito -
Changed line 11 from:
  // using concat() to add a long variable to a string:
to:
  // using += to add a long variable to a string:
August 01, 2010, at 10:11 AM by Tom Igoe -
Changed lines 1-2 from:

Examples > Control Structures

to:

Examples > Strings

August 01, 2010, at 09:21 AM by Tom Igoe -
Changed lines 33-34 from:

Like the + operator, this

to:

Like the + operator, these operators are handy for assembling longer strings from a combination of data objects.

August 01, 2010, at 09:18 AM by Tom Igoe -
Added lines 1-60:

Examples > Control Structures

String Appending Operators

Just as you can concatenate Strings with other data objects using the StringAdditionOperator, you can also use the += operator and the cconcat() method to append things to Strings. The += operator and the concat() method work the same way, it's just a matter of which style you prefer. The two examples below illustrate both, and result in the same String:

(:div class=code :)

  String stringOne = "A long integer: ";

  // using concat() to add a long variable to a string:
  stringOne += 123456789;

or

  String stringOne = "A long integer: ";

  // using concat() to add a long variable to a string:
  stringTwo.concat(123456789);
 

In both cases, stringOne equals "A long integer: 123456789".

(:divend:)

(:div class=BOM :)

Hardware Required

No external hardware is required. (:divend:)

Like the + operator, this

Circuit

(:div class=circuit :) There is no circuit for this example. (:divend:)

Code

(:div class=code :)

(:source




Bookmark and Share