I'm not sure if this is correct, but why not use static_cast<int>(1.00). I'm not sure if it's written correctly, but it changes the double into an integer.
Type: Posts; User: getName(C-Dub)
I'm not sure if this is correct, but why not use static_cast<int>(1.00). I'm not sure if it's written correctly, but it changes the double into an integer.
I'm sure you have to use #include <iomanip>. In the cout statement when displaying the output, you should have something like this (I'm using dev- C++):
cout << fixed << showpoint << setprecision(3)...
I understand what you mean, but I ran into a problem before I decided to just use a single testScore variable than 5 separate variables. Here's what problems arised: what if all the scores are...
Hi everyone, I'm relatively new at C++ - knowning most of the basic rules and various structures of a C++ program - but I'm having a hard time developing a code - without the use of an arry (haven't...