Return char from dec ASCII??

I'm trying to understand how itoa works, but unfortunately my mind is lost in the concept.


Assuming:
fetch() returns the decimal version of ASCII
AND
I want to return the char version of ASCII
AND
I want to store the results in the vector "container"

Is this the right way to use itoa?
1
2
3
4
for (b=0; b<366; ++b){
x = fetch(); // b is declared within fetch to cycle a vector for possibilities
container.assign(b,(itoa(a));
}

char a = fetch();
You can probably continue from here, knowing that a `char` variable can get a number on the left side of the equation.
Topic archived. No new replies allowed.