I work in Visual Studio 2012. I am just trying to create structure with pointers to same structure:
namespace PLT_1_lab {
class Program {
struct tNode {
string oper;
int level;
tNode *left;
tNode *right;
}
}
}
And in lines with * i get error (I have translated VS so it can look a bit different):
Impossible to get address, define size of declare pointer to controlled type ("PLT_1_lab.Program.tNote")
tprefix for types. (I'd also encourage you to avoid nested types unless you really need them.)