I have a question about:
and i only know really basic c++ none of the really fancy stuff :(
How to convert integers into a string/character array?
How do I search for specific integers in the string/character array? (all the input is integers)
Any help is appreciated :)
How to convert integers into a string/character array?
I guess Raghuram has explained that clearly enough
How do I search for specific integers in the string/character array? (all the input is integers)
Assume the following declaration
char str="345633";
you want to search the number 5 in this.
loop through str. Any string in c is a character array.
So str[0]='3', str[1]='4',etc
So, to find the number 5, you have to search for the character '5', ascii value 48+5