Go Down

Topic: Free virtual Uno simulation environment (Read 200028 times) previous topic - next topic


I've come across a possible bug.
In the code below, in block //4 the replace seems not to function.

   Sample Program to show some string functionsn
//#include "string.h";

void setup() {
   String my_str = "This is my string.";
   // (1) print the string
   // (2) change the string to upper-case
   // (3) overwrite the string
   my_str = "My new string.";
   // (4) replace a word in the string
   my_str.replace("string", "Arduino sketch");
   // (5) get the length of the string
   Serial.print("String length is: ");

void loop()


My code is working perfectly on Arduino uno v3. Simulator is giving error on  #include <String.h>

Error is :
PARSE ERROR: A < > Bracketed #include file name must contain the full drive path

How to solve this issue?

Go Up