Hi everyone.
Actually I'm still new in c++ programming.
I want to create a program so that when a person input "122555abc", the output will be :
Digits Occurrence
1 1
2 2
5 3
Did anyone can help me?
Please...
This is a discussion on How to occurrence digits in string function. within the C++ Programming forums, part of the General Programming Boards category; Hi everyone. Actually I'm still new in c++ programming. I want to create a program so that when a person ...
Hi everyone.
Actually I'm still new in c++ programming.
I want to create a program so that when a person input "122555abc", the output will be :
Digits Occurrence
1 1
2 2
5 3
Did anyone can help me?
Please...
Well show your atempt so far
Thought for the day:FLTK:The most fun you can have with your clothes on.You got big stones calling out GCC! (anduril462)
"If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"
Well here is the code to display the numbers in a string without any chars.
This is only a start and is showing you how to loop through the string to search for digits.Code:for (i = 0; i < message.length(); i++) if(isdigit(message.at(i))) cout << message[i] << endl;