The following code compiles on a C++ compiler.
#include int main() { struct xx { int x; struct yy {
Well, cstdio needs to be referred as stdio.h. As for the structure, the struct-keyword is not required in C++.
You don't really define struct members, but pointer members, so it seems plausible that it should work in either case.