Traits§
Functions§
- prompt
- Note - this function will create a copy of a string of stdin
Use
prompt_string
for strings - prompt_
string - prompt_
y - Returns
true
if first letter of a user response corresponds to “y” or “Y”, otherwisefalse
prompt_string
for stringstrue
if first letter of a user response corresponds to “y” or “Y”, otherwise false