I want to know if its possible to make this in C++:
struct Hello
{
Hello A, B;
};
I would appreciate any kind of help
I want to know if its possible to make this in C++:
struct Hello
{
Hello A, B;
};
I would appreciate any kind of help
No because such usage will consume an infinite amount of memory.
You can store pointers to the struct instead, and this is a common way, for example, in implementing a linked list.
struct Hello
{
Hello *A, *B;
};