Search:

Type: Posts; User: Tropod

Search: Search took 0.00 seconds.

  1. Thread: arrays

    by Tropod
    Replies
    8
    Views
    1,159

    To initialise this array, can do something like;...

    To initialise this array, can do something like;



    for (int i = 0;i<7;i++)
    {
    int array [i] = i;
    }
    //this essentially initialises each variable in the array to something, in this case 0-7.
  2. Thread: arrays

    by Tropod
    Replies
    8
    Views
    1,159

    Your array has not been initialized, so basically...

    Your array has not been initialized, so basically it just contains garbage.
    Reason it's crashing when selecting slot goes to what I've just mentioned. Selecting a slot makes it try and access...
Results 1 to 2 of 2