n*(n+1)'s Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
14 (0.06 per day)
Joined:
13-September 13
Profile Views:
100
Last Active:
User is offline Nov 21 2013 07:40 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Mac
Favorite Browser:
Chrome
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Icon   n*(n+1) has not set their status

Posts I've Made

  1. In Topic: GUI and Coordinates

    Posted 21 Nov 2013

    Awesome, with some toString() methods, I got it! Thanks for the help, g00se!
  2. In Topic: Returning an object from non global array

    Posted 3 Nov 2013

    Ah, I see. I attempted to change Cave cArray[][] to cArray[][] earlier, but I needed to change it to just plain cArray. Thank you for your help. I believe you've answered all my Java questions so far! To confirm, there is no way to return a Cave object without having cArray as a field/global variable?
  3. In Topic: Returning an object from non global array

    Posted 3 Nov 2013

    Sorry, about that. Yes, there was a compiler error. I believe I was trying different things. Is there a way to return a Cave object without making the cArray global? If not, I still have a problem with the posted code even after I remove the Board section. While using the debugger, the Board constructor for my cArray seems to work fine. All Cave objects are created. The problem is that when the code reaches the getCave() method, it attempts to return a null cArray(). I believe this may be due to having a local variable hiding a field. I am not sure how to fix this.
  4. In Topic: Help understanding syntax: if (!used[i])

    Posted 22 Sep 2013

    Thank you for the quick reply.
    Now, if my perm array and used array were dynamically allocated with calloc, the initial values for each element in those respective arrays would be 0, correct?

    so used would look like:


    0 1 2
    --------
    0 | 0 | 0 |
    --------
    used


    so for i = 0, i equals used[i] and the instructions after the if statement should be skipped, correct?

    The previous post is assuming the length of str is 3.
  5. In Topic: Scanf not stopping at whitespace with textfile

    Posted 15 Sep 2013

    Nevermind, I got it.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

n*(n+1) hasn't added any friends yet.

Comments

n*(n+1) has no profile comments yet. Why not say hello?