Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Thank you very much Benjamin! I Understand you completely Commented Jul 10, 2011 at 18:29
  • Why didn't I join this site sooner :-/ Commented Jul 10, 2011 at 20:19
  • Does "return stoi(input)" basically mean if return type is string convert to integer? Commented Jul 11, 2011 at 11:47
  • @Kyle: No. It means, "return the return value of stoi(input)". And stoi takes a string(there's no if involved here, it must be a string, otherwise it won't compile), and tries to convert it to an integer. Commented Jul 11, 2011 at 13:05