You can't assign anything inside a structure declaration. A structure declaration just defines a type. It's like a blueprint; you're telling the compiler, "if I ask you to create a Something, this is what I want it to look like." An example of a structure declaration would be
struct Something {
int x, y;
double zoom;
};
When you declare an instance of a structure, you're actually using memory. Here I create a variable of type Something:
struct Something variable;
Since this is a variable, it can be initialized as you were doing above.
struct Something variable = {1, 2, 5.0};
Of course, you can always do it manually too.
struct Something variable;
variable.x = 1;
variable.y = 2;
variable.zoom = 5.0;
Just think of a structure as a new type, like int or char -- not a built-in type, but rather a type you've defined in terms of built-in types (or other structures).