#include <string>
#include <iostream>

int main()
{
    unsigned nBills;

    std::cout << "How many bills will you enter?\n";
    std::cin >> nBills;

    std::string* bills = new std::string[nBills];

    std::cout << "Please enter the bill names.\n";

    std::cin >> std::ws ;  // Remove leading whitespace.
    for ( unsigned i=0; i<nBills; ++i )
        std::getline(std::cin, bills[i]);

    std::cout << "The bills you entered are:\n";
    for (unsigned i = 0; i < nBills; ++i)
        std::cout << '\t' << bills[i] << '\n';
}