Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by cout ( 13 years ago )
struct Foo
{
int x;
int y;
char s[100];
};
int main()
{
Foo f = {
.x = 42,
.y = 10,
.s = "HI!"
};
}
// test.cpp: In function ‘int main()’:
// test.cpp:14:3: error: C99 designator ‘s’ outside aggregate initializer
// };
// ^
Revise this Paste
Parent: 69310
Children: 69312