Coding

void
Last edited on
Orientation() : delRow(0), delCol(0) {} Constructor which takes no arguments, with empty body and sets delRow and delCol to 0 in member initializer list: http://en.cppreference.com/w/cpp/language/initializer_list

Orientation::operator() (int direction) Operator () which takes ine int parameter. That means you can do that:
1
2
Orientation foo;
foo(10); //calls Orientation::operator() with direction = 10 
Topic archived. No new replies allowed.