Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.10 seconds.

  1. Replies
    11
    Views
    3,114

    Re: Point constructor

    Ok, so you are not wanting to cast your doubles as ints, like you have here:

    if((initialX-(int) initialX)>0.5)
    a=(int)initialX + 1;

    if((initialY-(int)...
  2. Replies
    11
    Views
    3,114

    Re: Point constructor

    Please fix your post by reading the directions in my signature.

    I found your issue. Let me ask you a question: Where do you set the x and y variables in the constructor that takes in two doubles?
Results 1 to 2 of 2