Search:

Type: Posts; User: Rajin

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,572

    Remotely Creating Variables

    Is it possible to have someone type up a text file (*.txt) so that when the program starts, it will use variables declared in the text file as real variables, or would I have to have a pre-defined...
  2. Thread: 1D and 2D Arrays

    by Rajin
    Replies
    2
    Views
    1,899

    1D and 2D Arrays

    Just out of curiousity, would a 1D Dynamic Array take up more space than a 2D Dynamic Array?

    The 1D looking like this:


    int *array;
    array = new int[25];


    And The 2D looking like this:
  3. Thank you so very much. It's working now....

    Thank you so very much. It's working now. However, I'm curious to know why


    TILE **map;

    has two asterisks (*) in it. I know that it needs them, but why.
  4. So, how would that work with a multi-dimensional...

    So, how would that work with a multi-dimensional array? When I tried, I got a compiler error.


    cannot convert `TILE (*)[((rows - 1) + 1)]' to `TILE*' in assignment

    I have it declared like:
    ...
  5. Redeclaring An Array To Change The Number Of Elements

    I was wondering if it was possible to change (add or subtract) the elements in a multi-dimensional array, without using the new tag. I also can't change the array's name.
    For example, I want to...
Results 1 to 5 of 5