#include<iostream> using namespace std; class T { public: int a; int p(); }; int T::p() { if(a>=100000) return this->a; this->a+=2; return this->p(); } int main() { T t; t.a=2; cout<<t.p(); return 0; }