ntw.h - word to num


SUBMITTED BY: Guest

DATE: Dec. 5, 2013, 2:43 p.m.

FORMAT: C++

SIZE: 800 Bytes

HITS: 715

  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4. class ntw
  5. {
  6. public:
  7. string NumToWord( unsigned long number );
  8. unsigned long getNum();
  9. string getWord();
  10. private:
  11. void u20( unsigned long number, bool one);
  12. void tens( unsigned long number );
  13. void u100( unsigned long number, bool one );
  14. void u1000( unsigned long number, bool one );
  15. void thousand( unsigned long number );
  16. void million( unsigned long number );
  17. void milliard( unsigned long number );
  18. unsigned long varNum;
  19. string Nword;
  20. };

comments powered by Disqus