Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Thread: Point constructor

    by Norm
    Replies
    11
    Views
    3,114

    Re: Point constructor

    Look closely at your use of the 4 variables. You need to think through why you have those variables and what each are used for.
  2. Thread: Point constructor

    by Norm
    Replies
    11
    Views
    3,114

    Re: Point constructor

    Does the newly posted code work correctly? If not please show its output and describe what is wrong with it.

    In your code you have 4 class variables. What are they all used for? When are they...
  3. Thread: Point constructor

    by Norm
    Replies
    11
    Views
    3,114

    Re: Point constructor

    Another way to round vs using the awkward if tests:
    (int)(dblVal + 0.5)
Results 1 to 3 of 3