All pastes #1849170 Raw Edit

Stuff

public cpp v1 · immutable
#1849170 ·published 2010-03-22 13:04 UTC
rendered paste body
#include <iostream>using namespace std;class ForbiddenFruit{public:  ForbiddenFruit()  {    this->m_State = 0;    this->showState();  }  ForbiddenFruit &operator()()  {    this->m_State = 1 - this->m_State;    this->showState();    return *this;  }private:  int m_State;  void showState()  {    cout << ((this->m_State) ? "B" : "A") << endl;  }};int main(void){  ForbiddenFruit flandre;    flandre()()()()();    return 0;}