Hi all,
this is my first time posting, so this is probably going to sound pretty newbish.
#include <iostream>
using namespace std;
int main(){
float amount;
int cents; // will hold whole amount in cents, not the number of pennies.
int tendered = 0;
int hundreds, fifties, twenties, tens, fives, ones;
int quarters, dimes, nickels, pennies;
cout << "The appropriate change for $" << amount << " is:" << endl
<< "$100 x " << hundreds << endl;
<< "$50 x " << fifties << endl;
<< "$20 x " << twenties << endl;
<< "$10 x " << tens << endl;
<< "$5 x " << fives << endl;
<< "$1 x " << ones << endl;
<< "$0.25 x " << quarters << endl;
<< "$0.10 x " << dimes << endl;
<< "$0.05 x " << nickels << endl;
<< "$0.01 x " << pennies << endl;
return 0;
}
The variables for the pennies, nickels, dimes, and quarters are not initaializing.
I also keep getting these messages:
'project 5.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'project 5.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'project 5.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
Can any of you guys help me fix this?
Thanks in advance.