So I wanted to code a program that would do scientific notation and when I got to the a*10^b the endl could not be identified. Could someone tell me why?
^ symbol is used for bitwise exclusive or logic instead of exponent.
If you want to use
to the power of you'll need to replace it with
pow. Here is an example:
a ^ b to
In your case, it's
a * pow(10, b)