#include <cstdlib>
#include <iostream>
#include <cstring>

using namespace std;

struct candyBar
{
string strCandyBarName;
double doubleWeightCandyBar;
int intNumberCalories;
};

int main(int argc, char *argv[])
{
candyBar * pSnack = new candyBar [3];

pSnack[0] = {"Mocha Munch", 2.3, 350}; // doesnt compile...
// looking for clean way to define a dynamic array using a structure
// without using pSnack[0].strCandyBarName -> "Munch";
// any help making it cleaner???

delete [] pSnack;
system("PAUSE");
return EXIT_SUCCESS;
}