Digit

How to take sum of numbers (not just single digit) within a string in C++ programming?

Hi, I just finished working on taking the sum of just digits, and now i am asked for taking the sum of number within a string in C++. the output should look like this Enter a line of text containing numbers: a22bbb3 The sum is 25 I will have an exam tomorrow, please help. Thanks.

Brother Products – Brother – Personal FAX-275, Monochrome, Thermal Transfer – Sold As 1 Each – Thermal fax and copying capabilities. – 16 digit LCD display and on-screen programming. – Anti-Curl System. – Automatic document feeder. – Caller ID and Distinctive Ring Detection ready.

Thermal fax and copying capabilities. 16 digit LCD display and on-screen programming. Anti-Curl System. Automatic document feeder. Caller ID and Distinctive Ring Detection ready. Product DescriptionBrother – Personal FAX-275, Monochrome, Thermal Transfer – Sold As 1 EachAffordable, ultra-reliable device features monochromatic thermal fax and copying capabilities. Easy-to-read 16 digit LCD display and intuitive on-screen programming [...]

Powered by Yahoo! Answers