//********************************************
//File:wk1_change.cpp
//
//Summary: a program that whan given an amount of change will tell you what coins will be needed to equal that amount.
//
//author:
//Created Jan 2020
//*****************************************
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
what does it do if you put
cin >> amountLeft;
before return 0 in main?
if that works, its working and just closing before you can see it. Fix by running from a command prompt or adding a cin statement at the end of all your programs.
@jonnin, so you've given up on telling people to use code tags?
At any rate, he's not calling the functions properly in main. Just re-declaring them.
Probably would show up better in code tags.
Look at this carefully and compare it to your original. It now runs but doesn't produce sensible output.
1. Next time use code tags pls.
2. You need to revise how function calls work.
3. You need to spell input consistently. It's not 'input' in one place and 'imput' in another.
4. I'm guessing but '-=' seems more appropriate than '-', but I haven't double checked - that's your project therefore your job.
5. 'when' isn't spelled 'whan'
6. Always initialise variables.
7. The idea, especially if it's your own, isn't too bad at all, so persevere with it because there isn't a lot to fix :)