#textToNumbers
Write an executable that converts written numbers in words to digits in the middle of a paragraph.
Examples:
- If the input is ‘one hundred and one’, the output should be ‘101’.
##linux install
- For the CMakeLists.txt run the next commands:
mkdir build
cd build
cmake ..
make
- Or for running directly on the g++ compiler:
g++ -std=c++14 -o textToNumbers cuter.cpp
./textToNumbers "three hundred and forty two"
./textToNumbers "five hundred and sixty eight"
Doubts, comments? email me:
textToNumbers is released under the MIT License.