I'm trying to have a user enter a series of strings. This is my code.
this is my error message - cannot convert 'String' to 'char*' in assignment
char* titles[] = {"entry one", "entry two", "entry three", "entry four", "entry five"};
void setup() {
Serial.begin(9600);
Serial.println("Storing numbers in an array");
}
void loop()
{
for (int x =0; x < 5; x++)
{
if (Serial.available() > 0)
{
Serial.println("Enter a word... ");
titles[x] = Serial.readString();
Serial.println(" ");
Serial.println(chartitles[x]);
}
}
}