Assume that Point has already been defined as a structured type with two double fields, x and y. Write a function, getPoint that returns a Point value whose fields it has just read in from standard input. Assume the value of x precedes the value of y in the input.

LANGUAGE: C++

CHALLENGE:

Assume that Point has already been defined as a structured type with two double fields, x and y. Write a function, getPoint that returns a Point value whose fields it has just read in from standard input. Assume the value of x precedes the value of y in the input.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,