Momerath's Profile User Rating: ***--

Reputation: 1016 Grandmaster
Group:
Mentors
Active Posts:
2,461 (1.19 per day)
Joined:
04-October 09
Profile Views:
35,769
Last Active:
User is offline Yesterday, 06:23 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Internet Explorer
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Hyundai
Dream Kudos:
25
Expert In:
C#

Latest Visitors

Icon   Momerath Data Structures!

Posts I've Made

  1. In Topic: Problem with checking a position in XNA game

    Posted 27 May 2015

    Your code looks fine to me, is it giving you an error?

    In line 38 of your is... method you set 'value' to false if a piece is not on the goal position.

    Lines 16-19 will only run if the piece is on goal, then you check if it's on base, can both be true at the same time?
  2. In Topic: Null Reference Exception

    Posted 14 May 2015

    Sorry if my response was a bit harsh. I'm coming up from a major depressive episode and I'm always overly critical and tactless during this time :)
  3. In Topic: Null Reference Exception

    Posted 12 May 2015

    View Postrgfirefly24, on 12 May 2015 - 06:32 AM, said:

    Take a look at your for loop. Read it out in english.

    Set m_curidx equal to 0.
    While m_curidx is less than or equal to m_numAccounts do the loop
    pre - increment m_curidx.

    What that means is that loop 1 m_curidx will be 1 not 0.


    This is so wrong it's hard to believe it was posted. FOR loops do not work the way this poster thinks. The proper order of execution is:
    • For loop initialization
    • For loop test
      • if True : Body of code in {} (or single line after for statement if no {}) if test is true
      • if False : Exit for loop

    • For loop "increment" portion.


    The problem with this loop is the = sign. If you have 3 accounts, you will check accounts 0, 1, 2, 3 (4 accounts). Dump the = sign.
  4. In Topic: Stuck making a blackjack game

    Posted 4 May 2015

    Seems your instructor was right.

    Is there a question in there, or is this a "I'm an asshole and want to show up my teacher so do this for me" post?
  5. In Topic: Calculating Average of Array and Output

    Posted 3 May 2015

    Array indexes are integers, you are declaring them as double in line 05 and 08

My Information

Member Title:
D.I.C Lover
Age:
Age Unknown
Birthday:
November 20
Gender:
Interests:
Computer Math, Guitar, Caving, Photography
Years Programming:
34
Programming Languages:
ADA, AWK, Basic, COBOL, C/C++, C#, F#, Fortran, Java, JavaScript, Lisp, OPL, Pascal, Scheme, SED, Various assembly (6502, 8080/5, Z80, etc.)

Contact Information

E-mail:
Private
Website URL:
Website URL  http://www.mewkus.com

Friends

Momerath hasn't added any friends yet.

Comments

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