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
  • 1
    Are you looking to convert one character at a time, or parse as many digits as you can find? Commented Apr 28, 2014 at 22:10
  • 2
    Though there are many (better) ways to convert a string to a number, I'm surprised you didn't at least consider cout << IR[currentIRIndex] -48 << "\n"; Commented Apr 28, 2014 at 22:11
  • I'm only worried about the current number I'm looking at. @DavidO Oh my gosh....what an easy solution. Talk about functional fixedness..... >_< Commented Apr 28, 2014 at 22:13
  • We all have those moments, I suppose. ;) Commented Apr 28, 2014 at 22:16