I am new to c++ and am having to make a program that converts different currencies to and from US dollars. It asks the user whether converting to or from, then what currency and what amount. Displays all available currencies and current rates. Calculates conversion with 5% bank fee deducted from final amount. All the currency rates must be loaded from a .txt file, though.
The .txt file has to be set up like so:
Australian Dollars
0.96
British Pound Sterling
0.63
Canadian Dollars
1.00
Euro
0.74
Russian Rubles
30.01
STOP
This is the direction I have went. Putting the file into a variable then putting the variable into a vector. I have no idea what to do from here, though.
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;