Bivcala's Profile User Rating: -----

Reputation: -2 Dishonored
Group:
Members
Active Posts:
19 (0.03 per day)
Joined:
23-November 11
Profile Views:
241
Last Active:
User is offline Mar 11 2013 04:29 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   Bivcala has not set their status

Posts I've Made

  1. In Topic: How to combine JList, Textfield and Jbutton in java?

    Posted 9 Mar 2013

    View Postmacosxnerd101, on 09 March 2013 - 01:49 PM, said:

    What specific problems or errors are you encountering? Telling us that it doesn't work isn't descriptive.

    I am having problems with combining getting the selected item from the list and getting what text was inputted in to the textfield and then showing which item and what text was entered in the textfield when the button is pressed via the JOptionPane.
  2. In Topic: You can choose only one language

    Posted 22 Apr 2012

    C++, such a powerfull language to know by heart.
  3. In Topic: Can you use switch statements with arrays?

    Posted 6 Apr 2012

    View PostDimitriV, on 06 April 2012 - 03:33 PM, said:

    If apple is declared as such it is an array. You need to specify at which position within apple to refer to.
    If apple had 5 by 2 then I'd use it like so:
    apple[4][1] += 88;
    


    Yes apple is already declared as int apple[MAXAPPLES+1][2]; //This is an array of 6 apples
    I just need the apples to move when moved by the mouse that is why I need to do something to the appleCanmove() function to make it happen.
  4. In Topic: Can you use switch statements with arrays?

    Posted 6 Apr 2012

    View Postjimblumberg, on 06 April 2012 - 03:25 PM, said:

    Then you need both indexes in your assignment
    apple[????][????] += dy; if you are trying to change the value of apple.

    Jim


    Hi, which indexes? Do you mean I need int apple[][2] in the switch statement?
  5. In Topic: Can you use switch statements with arrays?

    Posted 6 Apr 2012

    View Postjimblumberg, on 06 April 2012 - 03:19 PM, said:

    How is apple defined? Is it an int apple[] or int apple[][]?

    Jim


    It's int apple[][2]

My Information

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

Contact Information

E-mail:
Private

Friends

Bivcala hasn't added any friends yet.

Comments

Bivcala has no profile comments yet. Why not say hello?