How do you round up or down a double(not an int) to the nearest dollar? Ex. $23.45 = $23 or $25.54 = $26...etc
Type: Posts; User: alkamenes
How do you round up or down a double(not an int) to the nearest dollar? Ex. $23.45 = $23 or $25.54 = $26...etc
I'm new with C++ so no flame. I'm getting this error
[Linker error] undefined reference to `DetermineCost(double, double)'
ld returned 1 exit status
Here is my code
#include...
Im sure i need apstring in there somewhere
Complete list of errors are:
13:22: apstring.h: No such file or directory
18: error: expected `,' or `...' before '&' token
18: error: ISO C++...
#include <iostream>
#include <iomanip>
#include "apstring.h"
using namespace std;
void ExplainProgram();
int getInteger(const apstring &prompt);
double getDouble(const apstring &prompt);...
This is my program
#include <iostream>
#include <iomanip>
#include "apstring.h"
using namespace std;
void ExplainProgram();
int getInteger(const apstring &prompt);