Proč to nejde?
#include <cstdlib>
#include <iostream>
using namespace std;
struct CandyBar
{
char neco[30];
double neco2;
float neco3;
};
int main()
{
CandyBar snack[3] =
{
("Mocha Munch", 2.3, 350),
("cus", 2.1, 55),
("heh", 5.5, 66)
};
cout << snack[0].neco;
cin.get();
return 0;
}