Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 11 months ago.
clearing a string
Whats the order for to clearing a string? Thanks for Reply
4 Answers
11 years, 11 months ago.
like this?
string s = "qbfjold"; //write somthing s = ""; //clear it.
11 years, 11 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, 11 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, 11 months ago.
Most LCD libraries have something like an lcd.clear or lcd.clr command which clears the LCD.