The program runs smoothly and I have no errors or warnings when its compiled its just when it gets the end result I just get a load of random letters and numbers no matter what I put in.
Here is the code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
     int hold;
     int n;
     int * result = new int;
     int * price = new int;
     std::string items[6];
        for (n=0; n<6; n++)
        {
            cout << "Item#" << n+1 << ": ";
            cin >> items[n];
        }
        cout <<  "\nYou Entered: ";
        for (int n=0; n<6; n++)
            cout << items[n] << ", ";
    for (n=0; n<6; n++)
    {
        if (items[n] == "ab"){
        price[n] = 2650;
        }
        else if (items[n] == "ae"){
        price[n] = 1925;
        }
        else if (items[n] == "ie"){
        price[n] = 3850;
        }
        else if (items[n] == "bt"){
        price[n] = 3000;
        }
        else if (items[n] == "pd"){
        price[n] = 2850;
        }
        else if (items[n] == "ga"){
        price[n] = 2600;
        }
    }
    for (n=0; n<6; n++)
    {
     result += price[n];
    }
    cout << "\nTotal gold for this build: " << result;
    cin >> hold;
    return 0;
}
 
     
     
     
     
     
    