¡@

Home 

c++ Programming Glossary: submachine

Inner class accessing outer class

http://stackoverflow.com/questions/11405069/inner-class-accessing-outer-class

for X . Now one of FSM 's attributes is another structure submachine which needs to read the value of X like this struct FSM public.. like this struct FSM public int x int getX return x struct submachine void onentry int g getX This gives the following error Error.. illegal call of non static member function My question is submachine is a member of FSM so shouldn't it have access to local instances..