Search:

Type: Posts; User: Cornix

Search: Search took 0.10 seconds.

  1. Replies
    24
    Views
    1,281

    [SOLVED] Re: Not sure where my problem is

    If it enters the loop with -1 you will get the same exception. The values need to be between 0 and 4 (inclusive). Surely arrays work the same way in C++, dont they?
  2. Replies
    24
    Views
    1,281

    [SOLVED] Re: Not sure where my problem is

    An array with a size of 5 can hold exactly 5 elements at the indices 0, 1, 2, 3 and 4.
    You tried to access the index 5, which would be the sixth element in the array, and this index is out of...
  3. Replies
    24
    Views
    1,281

    [SOLVED] Re: Not sure where my problem is

    Do you really want to do this with numbers? I can see that this probably makes for a better learning experience, but the more simpler way would be to cast the number to a string and to iterate over...
Results 1 to 3 of 3