cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to output a polynomial in c++?
How to output a polynomial in c++?
Feb 16, 2011 at 3:44am UTC
rekson
(7)
If I want "3x²" to be output in my program, and I have a variable holding the "3" as float coeff and one holding the "2" as int expn, how do I go about displaying the polynomial using cout?
Feb 16, 2011 at 8:12am UTC
hamsterman
(4538)
You can't have superscripts in console. You'll have to go with 3x^2.
Topic archived. No new replies allowed.