i am having trouble figuring out how to modify this function in such a way that it will return a default prompt (such as "enter string:") if called without an argument.
my understanding is that the parameters must be supplied if declared within the prototype... however, my compiler (xcode) is throwing error messages if I have not supplied necessary params (i.e., calling 'promptForString();' will generate an error). can someone please enlighten me on how to do this? I would appreciate any help you can provide.