2016-06-28 73 views
-3

我Arduino的代碼是:這個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

*「我= 1234,那好嗎?」*,顯然。 –

+0

感謝bro .Patrick Trentin – tanvir

回答

0

O/P: 「我= 1234,是確定」

爲什麼這麼傻問題?

是否有任何特殊原因或任何數學技巧?