B
BobJohnson
Just started learning C++ and I need some help with my homework, shouldn't
take long for people around here. I need to create a simple money
calculator but I don't know how to make the output numbers two decimal
places long like 10.01 I only know how to define numbers as int or double.
Do I use float?
Also, I'm using Visual Studio .NET is there anyway to keep the compiler on
the screen long enough to actually see what it's outputting. The project
is really easy but I'm totally frustrated by the lack of information in the
book or from the professor none of this has been covered. The project is
simple: Input your name and how much money you make, the program performs
an algorithm to figure out your tax situation, everything is done and
running I just don't know how to keep the output at two decimal places so
it looks like money. Please help
take long for people around here. I need to create a simple money
calculator but I don't know how to make the output numbers two decimal
places long like 10.01 I only know how to define numbers as int or double.
Do I use float?
Also, I'm using Visual Studio .NET is there anyway to keep the compiler on
the screen long enough to actually see what it's outputting. The project
is really easy but I'm totally frustrated by the lack of information in the
book or from the professor none of this has been covered. The project is
simple: Input your name and how much money you make, the program performs
an algorithm to figure out your tax situation, everything is done and
running I just don't know how to keep the output at two decimal places so
it looks like money. Please help