Hello, I need to make a x^2 curve in C++. It has to be horizontal to make it easier, not vertical. I have no idea where to start, can someone put me in the right direction? Thank you.

Recommended Answers

All 4 Replies

what compiler and what os? Never heard of a horizontal chart. Looks something like this:

4 |
3 |
2 |
1 |
0 __________________________________
   1   2   3   4   5   6   7

You could use something called Maple

Sorry, I'm using MS Visual Studio 6.0. I need to create my own axis. I can't use anything but the regular libraries. Thanks.

Then use win32 api functions or MFC. You will probably want to read this tutorial. Chapter 13 covers basic drawing functions.

Then use win32 api functions or MFC. You will probably want to read this tutorial. Chapter 13 covers basic drawing functions.

Not draw.. just ouput what looks to be an x^2 curve except horizontal, not vertical.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.