11 years, 5 months ago.

clearing a string

Whats the order for to clearing a string? Thanks for Reply

4 Answers

11 years, 5 months ago.

like this?

string s = "qbfjold";          //write somthing
s        = "";                 //clear it.

Accepted Answer
11 years, 5 months ago.

Why would you want to clear a string in the first place? Second question would be what you consider a cleared string? Should it be a list of only spaces? Or termination characters?

11 years, 5 months ago.

I cave a compiler where somon can make a note. This note i show on an lcd. Wath should i programate if i want clear this note. That the lcd shows a empty note like the beginn of the programm.

11 years, 5 months ago.

Most LCD libraries have something like an lcd.clear or lcd.clr command which clears the LCD.

i dont want to clear the lcd i want to clear the string that i can us it again. after clearing he should been like at the beginn.

posted by Daniel Moser 05 Dec 2012

So what do you expect then clearing the string will do? It wont have any effect on the state of your LCD.

posted by Erik - 05 Dec 2012