bool b_html; std::string html() { std::string s; if(b_html){ s = "</html>"; b_html = false; } else{ s = "<html>"; b_html = true; } }
Lets say I have a function called html() that returns a string of "<html>". It also saves it state so that the first time it returns "<html>", but...
Separate names with a comma.