How do I obtain NSString from the console input, and then try putting it in an int?
You can use a console (scanf or whatever) in a char *
string You can read, such as a regular program in you, then create an NSString
object using stringFromCString: withEncoding:
. Lastly, use the NSString
of integer value
function to get this numeric value.
Comments
Post a Comment