#include class Walk{ int a2,b2,d; public: Walk(int step, int dist); int Move(); }; Walk::Walk(int step, int dist){ a2=step; b2=dist; } int Walk::Move(){ int i=1; while(1==1){ d = a2*i; if(d