U
Umesh
I've not used graphics.h before. How can I plot a function say
y=sin(x) ?
y=sin(x) ?
I've not used graphics.h before. How can I plot a function say
y=sin(x) ?
It's a platform-specific header.Umesh said:I've not used graphics.h before. How can I plot a function say
y=sin(x) ?
I'm sure you are trying to be helpful but any random graphics.h headerWalter said:Sorry, graphics.h is not part of the C programming language.
There are a number of completely different graphics.h around.
You need to consult a reference suitable for your implementation.
Poking around a moment, I see an old example that might still
be of value for you. Or maybe not, considering all the different
graphics.h around.
http://www.mycplus.com/Programming-News-Articles.asp?NewsID=33
I'm sure you are trying to be helpful but any random graphics.h header
is likely to be utterly useless. A given header might have a function
prototype. The actual function must be in a library linked as we build
the executable. The header and the library are married.
I've not used graphics.h before. How can I plot a function say
y=sin(x) ?
I've not used graphics.h before. How can I plot a function say
y=sin(x) ?
[...]Malcolm said:It's a platform-specific header.
I've no idea how it works, but presumably you will need to intialise a
graphics display. Then there will almost certainly be a function called
something like plotxy(). It may take floats but will probably take integers.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.