hi all, me again,
i need to create an array within a function but somehow i'm getting errors. anyone can enlighten me?
string TravelVoucher::exchange(int i)
{
const int tix = 3;
TravelVoucher::exchItems[tix]={"Dinner for TWO at BestFood Restaurant", "Buffet for TWO at EatTillDrop", "Ticket for TWO for Singapore Flyer", "High Tea for TWO at TeaForYou"};
return TravelVoucher::exchItems[i];
}