can anyone tell me what the "fixed" kwyword says actually
can anyone tell me what the "fixed" kwyword says actually
Last time I checked fixed wasn't a keyword.
Woop?
Could you give us an example?
Stupid things pop singers say
"I get to go to lots of overseas places, like Canada."
- Britney Spears
"I love what you've done with the place!"
-Jessica Simpson upon meeting the Secretary of Interior during tour of the White House
The fixed stream manipulator causes floating point output to use decimal notation as opposed to scientific/exponential notation.
Output:Code:double d = 9167.872; cout << scientific << d << endl << fixed << d << endl;
Code:9.167872e+003 9167.872000
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
Going on what hk said read this to see more i/o settings
http://www.cppreference.com/io_flags.html#format_flags
Woop?