+ 2
CHALLENGE #####!!!!!! ADD NUMBER IN STRING
ADD number in string without using any built in function like isdigit For example string name="on this table 3 books and 4 pen"; output 3+4=7 answer =7
13 Réponses
+ 2
no but suddenly i think about it i already did ot by using bulit in function and now i am stuck because i am trying to do it without using built in function
+ 3
Muhammad Zubair Irshad hi, u can check this out, let me know if this kinda coding u were looking for.
https://code.sololearn.com/cn5lI0xxxiZa/?ref=app
+ 1
Did someone told you to do this?
+ 1
My code has a bug... do you want me to show it?
+ 1
This could simply be done by having a conditonal if statement and using charAt. By iteraring through the string. If the postion is a number between 0-9; add it.
+ 1
Ben will you please post a code in c++
+ 1
Muhammad Zubair Irshad hi, check out now, without builtin std::isdigit(). i hope that follows the challenge constrain.
https://code.sololearn.com/cn5lI0xxxiZa/?ref=app
0
Do you mean "SUM" ?
0
yes
0
Ben will u please put complete code in comment box
0
https://code.sololearn.com/crRQqjrVmEKR/?ref=app
The code has been posted. If you have any questions let me know. It is better to understande the code.
0
please post a code in C++
0
Flash its awsome but you were use isdigit function .
without use any built in function is it possible??