#include <iostream>
using namespace std;
struct CandyBar
{
 char kind[20];
 float weight;
 int calory;
};

int main()
{
 CandyBar snack=
 {
  "Mocha Munch",
  2.3,
  350
 };
 cout<<"The kind of snack is: "<<snack.kind<<endl;
 cout<<"The weight of snack is: "<<snack.weight<<endl;
 cout<<"The calory of snack is: "<<snack.calory<<endl;
 system("pause");
 return 0;
}

04-13 13:20