struct Structure { int m_field; void fun() { // check this } }; int main() { Structure s; s.m_field = 30; s.fun(); }