Hello, I am fairly new to c++ and I am wanting to find out some information about creating a calculator that can calculate a noisy input stream e.g.

1hgj6-fgkj7 = 14 (1+6+7)

3ku5jf3 = 11 (3+5+3)

I have looked into some tutorials when creating a calculator in C++, although none of them give reference to calculating a noisy input stream.

Any help on this issue would be greatly appreciated :)

Regards, Nick.

9 Years
Discussion Span
Last Post by Salem

For example calculating a sum of numbers e.g. 2, 4, 7, while they are in surrounded by letters and non numerical characters. So in effect just add the numbers up and ignore the other characters.


Hello, thank you for your input, although how would you implement some kind of caluculation into the code, as far as I can see it only distingushes a letter from and number. Although this is very usefull I am unable to implement it into a calculator.

Kind Regards.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.