Algorithm to C++ conversion

   while isSearching do
       2  (2)
         2  1
       1  2
       if  > 0 then
                0
              2  Run(1)
                2
       else
              2  (1)
                 + 1
              2  (2, )
       if (2) then
             v(2)
       else
             2  (1)
       if  >  then
               
               
   end

Can I get the logic and conversion of the above algorithm to cpp program?