Saturday, August 16, 2008

ISC 2007 Digit to word conversion through Recursion

Link for Downloading Full Program C++ version

void extdigit(int x)
  {
        int m=x%10;
        x=x/10;
         if(x>0) extdigit(x);
         numtoword(m);
  }
  void numtoword(int p)
  {
       char a[10][10]={"Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"};
       cout<    }

No comments: