You are here:

C++/ploting curve in oop(C++)


Howq to plott a curve in the C++ with the help of OOP , by taking values from the users?

Hello Xaheen
First of all, i apologize for not answering early
due to my official commitments.

Xaheen, as your question about plotting a curve
is concerned, regarding OOP, i think first of
all you should do it like this

1- Make a class named curve
2- Declare essential variables ( i.e. you will be
needing to plot a curve)
3- Then you can take input from user by the set and
get methods or you also call them "Accessor" method
to get the values essential for the users, or you
can do it through constructor overloading, declaring
different constructors, each taking different values.
4- Now, i don't understand, what kind of curve you
want to plot, but half curve can easily be plotted
by, you can call a fucntion drawCurve(), and in that
use the built in function for graphics, like drawArc
or something like that, and try to get the desired
values you want.

I think so, thats what you asked from me. You can
ask more questions, if you have any, and i will do
my best to respond promptly.

Hope this helps,


All Answers

Answers by Expert:

Ask Experts




I can answer any question about functions,pointers,structures,object oriented programming basics of classes and data structures.My strong field is structured programming.


I have got 2 years experiece under C . I am able to answer about the structured concepts pointers to a little extent,OOP concepts. I have also experience in data Strucutres like Linked List, Stacks , Queues, Heaps, B Trees, Red Black Trees. I will try to satisfy with my knowledge. I am the Student of an expert here Martin, what i have learnt today, i just owe my every knowledge to him. He is the greatest.

©2017 All rights reserved.

[an error occurred while processing this directive]