我的Arduino代码是:
String myString;
void setup() {
// initialize serial and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
myString.reserve(26);
myString = "i=";
myString += "1234";
myString += ", is that ok?";
// print the String:
Serial.println(myString);
}
void loop() {
// nothing to do here
}
答案 0 :(得分:0)
O / P :" i = 1234,可以吗?"
为什么这么傻问题?
有任何特殊原因或任何数学技巧吗?