Suppose I have a struct called Node as follows:
struct foo
{
foo *next;
int aNum;
};
How do I create an "instance" of this in C++ (in a main method for instance)? I've looked around and it seems as if I would just do
foo name;
But it seems to me as if I should have to allocate space first. Can someone explain (a long explanation is not necessary)