Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
ntw.h - word to num
SUBMITTED BY:
Guest
DATE:
Dec. 5, 2013, 2:43 p.m.
FORMAT:
C++
SIZE:
800 Bytes
Raw
Download
Tweet
HITS:
715
Go to comments
Report
#include
<iostream>
#include
<string>
using
namespace
std
;
class
ntw
{
public
:
string
NumToWord
(
unsigned
long
number
);
unsigned
long
getNum
();
string
getWord
();
private
:
void
u20
(
unsigned
long
number
,
bool
one
);
void
tens
(
unsigned
long
number
);
void
u100
(
unsigned
long
number
,
bool
one
);
void
u1000
(
unsigned
long
number
,
bool
one
);
void
thousand
(
unsigned
long
number
);
void
million
(
unsigned
long
number
);
void
milliard
(
unsigned
long
number
);
unsigned
long
varNum
;
string
Nword
;
};
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus