Click here to Skip to main content
14,660,664 members
Rate this:
Please Sign up or sign in to vote.
See more:
I need to write three class.
The first class is the plane coordinate system class,
the second is the Cartesian coordinate system class,
the third is the polar coordinate system class,
and the plane coordinate system class
is the parent class of the other two class.
All coordinates are expressed as a whole,
and the coordinate system must have mirror image function and must support polymorphic type.

What I have tried:

I have tried many ways but all failed.
:(
Posted
Updated 20-Aug-20 5:13am
Comments
jeron1 20-Aug-20 11:06am
   
"I have tried many ways but all failed."
How do you know it failed? Try creating the smallest (simplest) version of what you are trying to do, if that version does not do what you want, then post that small version here and describe exactly what you are trying to accomplish and how your version doesn't do what you think it should.
Djdjdidjmd 20-Aug-20 11:11am
   
I will keep working hard, thank you for your reply!
Stefan_Lang 21-Aug-20 3:44am
   
I wonder, where did you get that task from? I am asking because of this requirement:
"and the plane coordinate system class is the parent class of the other two class."

This is very bad for the program design, and breaks core principles of object oriented programming! If this is an online course, find another: this is not the right place to learn C++! If this is not online, then maybe there are other students you could ask for help. But, if possible, you should still try to find another course - this one is likely a waste of time.

P.S.: if you find another, better course for object oriented programming, maybe tell your tutor to join you: he clearly needs it! ;-)

Rate this:
Please Sign up or sign in to vote.

Solution 1

We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100